Skip to content

Commit

Permalink
docs: Add an example field to argo cluster-template list command. Fixes
Browse files Browse the repository at this point in the history
#11898 (#12106)

Signed-off-by: Shubham <[email protected]>
Co-authored-by: Anton Gilgur <[email protected]>
  • Loading branch information
shubhamch71 and agilgur5 authored Nov 3, 2023
1 parent c751e66 commit dfbcd5f
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
9 changes: 9 additions & 0 deletions cmd/argo/commands/clustertemplate/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,15 @@ func NewListCommand() *cobra.Command {
command := &cobra.Command{
Use: "list",
Short: "list cluster workflow templates",
Example: `# List Cluster Workflow Templates:
argo cluster-template list
# List Cluster Workflow Templates with additional details such as labels, annotations, and status:
argo cluster-template list --output wide
# List Cluster Workflow Templates by name only:
argo cluster-template list -o name
`,
Run: func(cmd *cobra.Command, args []string) {
ctx, apiClient := client.NewAPIClient(cmd.Context())
serviceClient, err := apiClient.NewClusterWorkflowTemplateServiceClient()
Expand Down
14 changes: 14 additions & 0 deletions docs/cli/argo_cluster-template_list.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,20 @@ list cluster workflow templates
argo cluster-template list [flags]
```

### Examples

```
# List Cluster Workflow Templates:
argo cluster-template list
# List Cluster Workflow Templates with additional details such as labels, annotations, and status:
argo cluster-template list --output wide
# List Cluster Workflow Templates by name only:
argo cluster-template list -o name
```

### Options

```
Expand Down

0 comments on commit dfbcd5f

Please sign in to comment.