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 cluster-template list. Fixes #11898 #12106

Merged
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
Loading