Skip to content

Commit

Permalink
docs: add example of list label value
Browse files Browse the repository at this point in the history
Signed-off-by: LeeSeolHui <[email protected]>
  • Loading branch information
D0ri123 committed Oct 5, 2024
1 parent 734b5b6 commit 6824c01
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/argo/commands/archive/list_label_values.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ func NewListLabelValueCommand() *cobra.Command {
command := &cobra.Command{
Use: "list-label-values",
Short: "get workflow label values in the archive",
Example: `# Get workflow label values in the archive:
argo archive list-label-values -l key1
`,
RunE: func(cmd *cobra.Command, args []string) error {
listOpts := &metav1.ListOptions{
LabelSelector: selector,
Expand Down
7 changes: 7 additions & 0 deletions docs/cli/argo_archive_list-label-values.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ get workflow label values in the archive
argo archive list-label-values [flags]
```

### Examples

```
# Get workflow label values in the archive:
argo archive list-label-values -l key1
```

### Options

```
Expand Down

0 comments on commit 6824c01

Please sign in to comment.