-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs(cli): add example field to argo archive
command
#11969
Conversation
Signed-off-by: rum1887 <ramyapgk1887@gmail.com>
Signed-off-by: Ramya <ramyapgk1887@gmail.com>
Signed-off-by: Ramya <ramyapgk1887@gmail.com>
a2276cb
to
33a9c53
Compare
Signed-off-by: Ramya <ramyapgk1887@gmail.com>
Signed-off-by: rum1887 <ramyapgk1887@gmail.com>
Signed-off-by: Ramya <ramyapgk1887@gmail.com>
Signed-off-by: Ramya <ramyapgk1887@gmail.com>
Signed-off-by: Ramya <ramyapgk1887@gmail.com>
…o-workflows into archive/root.go (argoproj#11898) Signed-off-by: Ramya <ramyapgk1887@gmail.com>
…887/argo-workflows into archive/root.go (argoproj#11898) Signed-off-by: Ramya <ramyapgk1887@gmail.com>
Signed-off-by: Ramya <ramyapgk1887@gmail.com>
Signed-off-by: Ramya <ramyapgk1887@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we'll want to rewrite this a bit or just not have any Long
descriptions for root.go
, as they don't have much value. See in-line comment below for one possible alternative. Otherwise, I would suggest to focus on other CLI commands whose examples would be more useful. I suggested some corrections to the list in #11898 (comment)
Also can you rename the title of this PR to something more clear? there are many files named root.go
, so the current title is ambiguous.
I would suggest "docs(cli): Add an example to argo archive
command"
@@ -8,6 +8,22 @@ func NewArchiveCommand() *cobra.Command { | |||
command := &cobra.Command{ | |||
Use: "archive", | |||
Short: "manage the workflow archive", | |||
Example: ` | |||
# List workflow archives: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you'll want to leave these unindented so that the generated markdown is unindented as well. Right now it would appear in the middle of the page
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the comments should ideally be the same as the ones in the individual commands. for instance, argo archive get
has "get a workflow in the archive"
The Workflow Archive is also singular. There are "workflows in the archive" as the other commands have.
the commands should also be alphabetized to match the existing documentation
EDIT: see below comment
# Resubmit a workflow archive: | ||
argo archive resubmit uid | ||
# Retry a workflow archive: | ||
argo archive retry uid |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so this whole section is actually already repeated in the "See Also" section below. and in the sidebar in the docs as well. and in the CLI help output already.
so I don't think we should duplicate documentation here or in any root
command really.
if we have anything here, I suppose we could have:
# Print this message
argo archive
# Otherwise, see subcommands below
This PR has been automatically marked as stale because it has not had recent activity and needs further changes. It will be closed if no further activity occurs. |
This PR has been closed due to inactivity and lack of changes. If you would like to still work on this PR, please address the review comments and re-open. |
argo archive
command
Fixes #11898 Added an example field to the archive command.
Motivation
Changes to support more detailed information when someone runs the archive Cobra command CLI
Verification
Run - argo archive