From 6824c010941ce1392ca5281a0190ea9f16cee7f8 Mon Sep 17 00:00:00 2001 From: LeeSeolHui Date: Sat, 5 Oct 2024 17:50:52 +0900 Subject: [PATCH] docs: add example of list label value Signed-off-by: LeeSeolHui --- cmd/argo/commands/archive/list_label_values.go | 3 +++ docs/cli/argo_archive_list-label-values.md | 7 +++++++ 2 files changed, 10 insertions(+) diff --git a/cmd/argo/commands/archive/list_label_values.go b/cmd/argo/commands/archive/list_label_values.go index b62917a3b336..30c3f918b47b 100644 --- a/cmd/argo/commands/archive/list_label_values.go +++ b/cmd/argo/commands/archive/list_label_values.go @@ -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, diff --git a/docs/cli/argo_archive_list-label-values.md b/docs/cli/argo_archive_list-label-values.md index a125ca64a271..c9bc0719365f 100644 --- a/docs/cli/argo_archive_list-label-values.md +++ b/docs/cli/argo_archive_list-label-values.md @@ -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 ```