Skip to content
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

Closed
wants to merge 12 commits into from

Conversation

rum1887
Copy link

@rum1887 rum1887 commented Oct 9, 2023

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

dependabot bot and others added 3 commits October 9, 2023 18:27
Signed-off-by: rum1887 <ramyapgk1887@gmail.com>
Signed-off-by: Ramya <ramyapgk1887@gmail.com>
Signed-off-by: Ramya <ramyapgk1887@gmail.com>
yarn.lock Outdated Show resolved Hide resolved
go.sum Outdated Show resolved Hide resolved
rum1887 and others added 9 commits October 9, 2023 22:37
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>
Signed-off-by: Ramya <ramyapgk1887@gmail.com>
Signed-off-by: Ramya <ramyapgk1887@gmail.com>
@rum1887 rum1887 changed the title chore(root): Add an example field to root.go (#11898) chore(root): Add an example field to root.go Oct 10, 2023
Copy link
Member

@agilgur5 agilgur5 left a 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:
Copy link
Member

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

Copy link
Member

@agilgur5 agilgur5 Oct 11, 2023

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
Copy link
Member

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

@agilgur5 agilgur5 added the area/docs Incorrect, missing, or mistakes in docs label Oct 11, 2023
@Allikooo Allikooo mentioned this pull request Oct 15, 2023
@agilgur5 agilgur5 added the problem/more information needed Not enough information has been provide to diagnose this issue. label Oct 20, 2023
@rum1887 rum1887 changed the title chore(root): Add an example field to root.go docs(cli): Add an example field to argo archive command Oct 20, 2023
@rum1887 rum1887 marked this pull request as draft November 29, 2023 05:44
Copy link
Contributor

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.

@github-actions github-actions bot added the problem/stale This has not had a response in some time label Jan 10, 2024
Copy link
Contributor

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.

@github-actions github-actions bot closed this Jan 25, 2024
@agilgur5 agilgur5 removed problem/stale This has not had a response in some time problem/more information needed Not enough information has been provide to diagnose this issue. labels Feb 8, 2024
@agilgur5 agilgur5 changed the title docs(cli): Add an example field to argo archive command docs(cli): add example field to argo archive command Sep 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/cli The `argo` CLI area/docs Incorrect, missing, or mistakes in docs area/workflow-archive
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add examples to commands' --help output
2 participants