Skip to content

Add examples to commands' --help output #11898

@tico24

Description

@tico24

Summary

The Argo CLI has a lot of commands for which we provide no example in the --help output.

Motivation

Examples are awesome.

Proposal

For each item in this checklist, add an Example field. EDIT by agilgur5: See already-checked items for inspiration, use similar style & examples when possible, such as argo list for argo archive list, etc.

In some cases, the code itself may provide sufficient information to write some examples. For other commands, you may have to read through the docs to find or create examples.

--- list has been updated & modified by agilgur5 ---

argo commands

argo executor-plugin commands

argo archive commands

argo auth commands

argo template commands

argo cluster-template commands

argo cron commands

Note: I generated the list with this command which I liberated from @crenshaw-dev...

find ./cmd -name '*.go' -print | xargs grep -n -r '&cobra.Command{' | sed "s/^./- [ ] https:\/\/github.com\/argoproj\/argo-workflows\/tree\/$(git rev-parse --short HEAD)/" | sed 's/\.go:/\.go#L/' | awk -F: '{print $1":"$2}' | pbcopy

EDIT: list was further updated & modified by agilgur5


Message from the maintainers:

Love this enhancement proposal? Give it a 👍. We prioritise the proposals with the most 👍.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions