Skip to content

Commit

Permalink
feat: Add shorthanded option -A for --all-namespaces
Browse files Browse the repository at this point in the history
Signed-off-by: makocchi-git <makocchi@gmail.com>
  • Loading branch information
makocchi-git committed Dec 7, 2020
1 parent 3b66f74 commit 7b3af69
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion cmd/argo/commands/cron/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func NewListCommand() *cobra.Command {
}
},
}
command.Flags().BoolVar(&listArgs.allNamespaces, "all-namespaces", false, "Show workflows from all namespaces")
command.Flags().BoolVarP(&listArgs.allNamespaces, "all-namespaces", "A", false, "Show workflows from all namespaces")
command.Flags().StringVarP(&listArgs.output, "output", "o", "", "Output format. One of: wide|name")
return command
}
Expand Down
2 changes: 1 addition & 1 deletion cmd/argo/commands/delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ func NewDeleteCommand() *cobra.Command {
},
}

command.Flags().BoolVar(&allNamespaces, "all-namespaces", false, "Delete workflows from all namespaces")
command.Flags().BoolVarP(&allNamespaces, "all-namespaces", "A", false, "Delete workflows from all namespaces")
command.Flags().BoolVar(&all, "all", false, "Delete all workflows")
command.Flags().BoolVar(&flags.completed, "completed", false, "Delete completed workflows")
command.Flags().BoolVar(&flags.resubmitted, "resubmitted", false, "Delete resubmitted workflows")
Expand Down
2 changes: 1 addition & 1 deletion cmd/argo/commands/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func NewListCommand() *cobra.Command {
errors.CheckError(err)
},
}
command.Flags().BoolVar(&allNamespaces, "all-namespaces", false, "Show workflows from all namespaces")
command.Flags().BoolVarP(&allNamespaces, "all-namespaces", "A", false, "Show workflows from all namespaces")
command.Flags().StringVar(&listArgs.prefix, "prefix", "", "Filter workflows by prefix")
command.Flags().StringVar(&listArgs.finishedAfter, "older", "", "List completed workflows finished before the specified duration (e.g. 10m, 3h, 1d)")
command.Flags().StringSliceVar(&listArgs.status, "status", []string{}, "Filter by status (comma separated)")
Expand Down
2 changes: 1 addition & 1 deletion cmd/argo/commands/template/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func NewListCommand() *cobra.Command {

},
}
command.Flags().BoolVar(&listArgs.allNamespaces, "all-namespaces", false, "Show workflows from all namespaces")
command.Flags().BoolVarP(&listArgs.allNamespaces, "all-namespaces", "A", false, "Show workflows from all namespaces")
command.Flags().StringVarP(&listArgs.output, "output", "o", "", "Output format. One of: wide|name")
return command
}
Expand Down
2 changes: 1 addition & 1 deletion docs/cli/argo_cron_list.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ argo cron list [flags]
### Options

```
--all-namespaces Show workflows from all namespaces
-A, --all-namespaces Show workflows from all namespaces
-h, --help help for list
-o, --output string Output format. One of: wide|name
```
Expand Down
2 changes: 1 addition & 1 deletion docs/cli/argo_delete.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ argo delete [--dry-run] [WORKFLOW...|[--all] [--older] [--completed] [--resubmit

```
--all Delete all workflows
--all-namespaces Delete workflows from all namespaces
-A, --all-namespaces Delete workflows from all namespaces
--completed Delete completed workflows
--dry-run Do not delete the workflow, only print what would happen
--field-selector string Selector (field query) to filter on, supports '=', '==', and '!='.(e.g. --field-selectorkey1=value1,key2=value2). The server only supports a limited number of field queries per type.
Expand Down
2 changes: 1 addition & 1 deletion docs/cli/argo_list.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ argo list [flags]
### Options

```
--all-namespaces Show workflows from all namespaces
-A, --all-namespaces Show workflows from all namespaces
--chunk-size int Return large lists in chunks rather than all at once. Pass 0 to disable.
--completed Show completed workflows. Mutually exclusive with --running.
--field-selector string Selector (field query) to filter on, supports '=', '==', and '!='.(e.g. --field-selectorkey1=value1,key2=value2). The server only supports a limited number of field queries per type.
Expand Down
2 changes: 1 addition & 1 deletion docs/cli/argo_template_list.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ argo template list [flags]
### Options

```
--all-namespaces Show workflows from all namespaces
-A, --all-namespaces Show workflows from all namespaces
-h, --help help for list
-o, --output string Output format. One of: wide|name
```
Expand Down

0 comments on commit 7b3af69

Please sign in to comment.