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

add shorthand -a for --all flags #2412

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/cmd/tkn_clustertriggerbinding_delete.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ or
### Options

```
--all Delete all ClusterTriggerBindings (default: false)
-a, --all Delete all ClusterTriggerBindings (default: false)
--allow-missing-template-keys If true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats. (default true)
-f, --force Whether to force deletion (default: false)
-h, --help help for delete
Expand Down
2 changes: 1 addition & 1 deletion docs/cmd/tkn_eventlistener_delete.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ or
### Options

```
--all Delete all EventListeners in a namespace (default: false)
-a, --all Delete all EventListeners in a namespace (default: false)
--allow-missing-template-keys If true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats. (default true)
-f, --force Whether to force deletion (default: false)
-h, --help help for delete
Expand Down
2 changes: 1 addition & 1 deletion docs/cmd/tkn_pipeline_delete.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ or
### Options

```
--all Delete all Pipelines in a namespace (default: false)
-a, --all Delete all Pipelines in a namespace (default: false)
--allow-missing-template-keys If true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats. (default true)
-f, --force Whether to force deletion (default: false)
-h, --help help for delete
Expand Down
2 changes: 1 addition & 1 deletion docs/cmd/tkn_pipelinerun_delete.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ or
### Options

```
--all Delete all PipelineRuns in a namespace (default: false)
-a, --all Delete all PipelineRuns in a namespace (default: false)
--allow-missing-template-keys If true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats. (default true)
-f, --force Whether to force deletion (default: false)
-h, --help help for delete
Expand Down
2 changes: 1 addition & 1 deletion docs/cmd/tkn_task_delete.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ or
### Options

```
--all Delete all Tasks in a namespace (default: false)
-a, --all Delete all Tasks in a namespace (default: false)
--allow-missing-template-keys If true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats. (default true)
-f, --force Whether to force deletion (default: false)
-h, --help help for delete
Expand Down
2 changes: 1 addition & 1 deletion docs/cmd/tkn_taskrun_delete.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ or
### Options

```
--all Delete all TaskRuns in a namespace (default: false)
-a, --all Delete all TaskRuns in a namespace (default: false)
--allow-missing-template-keys If true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats. (default true)
--clustertask string The name of a ClusterTask whose TaskRuns should be deleted (does not delete the ClusterTask)
-f, --force Whether to force deletion (default: false)
Expand Down
2 changes: 1 addition & 1 deletion docs/cmd/tkn_triggerbinding_delete.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ or
### Options

```
--all Delete all TriggerBindings in a namespace (default: false)
-a, --all Delete all TriggerBindings in a namespace (default: false)
--allow-missing-template-keys If true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats. (default true)
-f, --force Whether to force deletion (default: false)
-h, --help help for delete
Expand Down
2 changes: 1 addition & 1 deletion docs/cmd/tkn_triggertemplate_delete.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ or
### Options

```
--all Delete all TriggerTemplates in a namespace (default: false)
-a, --all Delete all TriggerTemplates in a namespace (default: false)
--allow-missing-template-keys If true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats. (default true)
-f, --force Whether to force deletion (default: false)
-h, --help help for delete
Expand Down
2 changes: 1 addition & 1 deletion docs/man/man1/tkn-clustertriggerbinding-delete.1
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Delete ClusterTriggerBindings

.SH OPTIONS
.PP
\fB\-\-all\fP[=false]
\fB\-a\fP, \fB\-\-all\fP[=false]
Delete all ClusterTriggerBindings (default: false)

.PP
Expand Down
2 changes: 1 addition & 1 deletion docs/man/man1/tkn-eventlistener-delete.1
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Delete EventListeners in a namespace

.SH OPTIONS
.PP
\fB\-\-all\fP[=false]
\fB\-a\fP, \fB\-\-all\fP[=false]
Delete all EventListeners in a namespace (default: false)

.PP
Expand Down
2 changes: 1 addition & 1 deletion docs/man/man1/tkn-pipeline-delete.1
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Delete Pipelines in a namespace

.SH OPTIONS
.PP
\fB\-\-all\fP[=false]
\fB\-a\fP, \fB\-\-all\fP[=false]
Delete all Pipelines in a namespace (default: false)

.PP
Expand Down
2 changes: 1 addition & 1 deletion docs/man/man1/tkn-pipelinerun-delete.1
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Delete PipelineRuns in a namespace

.SH OPTIONS
.PP
\fB\-\-all\fP[=false]
\fB\-a\fP, \fB\-\-all\fP[=false]
Delete all PipelineRuns in a namespace (default: false)

.PP
Expand Down
2 changes: 1 addition & 1 deletion docs/man/man1/tkn-task-delete.1
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Delete Tasks in a namespace

.SH OPTIONS
.PP
\fB\-\-all\fP[=false]
\fB\-a\fP, \fB\-\-all\fP[=false]
Delete all Tasks in a namespace (default: false)

.PP
Expand Down
2 changes: 1 addition & 1 deletion docs/man/man1/tkn-taskrun-delete.1
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Delete TaskRuns in a namespace

.SH OPTIONS
.PP
\fB\-\-all\fP[=false]
\fB\-a\fP, \fB\-\-all\fP[=false]
Delete all TaskRuns in a namespace (default: false)

.PP
Expand Down
2 changes: 1 addition & 1 deletion docs/man/man1/tkn-triggerbinding-delete.1
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Delete TriggerBindings in a namespace

.SH OPTIONS
.PP
\fB\-\-all\fP[=false]
\fB\-a\fP, \fB\-\-all\fP[=false]
Delete all TriggerBindings in a namespace (default: false)

.PP
Expand Down
2 changes: 1 addition & 1 deletion docs/man/man1/tkn-triggertemplate-delete.1
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Delete TriggerTemplates in a namespace

.SH OPTIONS
.PP
\fB\-\-all\fP[=false]
\fB\-a\fP, \fB\-\-all\fP[=false]
Delete all TriggerTemplates in a namespace (default: false)

.PP
Expand Down
2 changes: 1 addition & 1 deletion pkg/cmd/clustertriggerbinding/delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ or
}
f.AddFlags(c)
c.Flags().BoolVarP(&opts.ForceDelete, "force", "f", false, "Whether to force deletion (default: false)")
c.Flags().BoolVarP(&opts.DeleteAll, "all", "", false, "Delete all ClusterTriggerBindings (default: false)")
c.Flags().BoolVarP(&opts.DeleteAll, "all", "a", false, "Delete all ClusterTriggerBindings (default: false)")

return c
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/cmd/eventlistener/delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ or
}
f.AddFlags(c)
c.Flags().BoolVarP(&opts.ForceDelete, "force", "f", false, "Whether to force deletion (default: false)")
c.Flags().BoolVarP(&opts.DeleteAllNs, "all", "", false, "Delete all EventListeners in a namespace (default: false)")
c.Flags().BoolVarP(&opts.DeleteAllNs, "all", "a", false, "Delete all EventListeners in a namespace (default: false)")

return c
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/cmd/pipeline/delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ or
f.AddFlags(c)
c.Flags().BoolVarP(&opts.ForceDelete, "force", "f", false, "Whether to force deletion (default: false)")
c.Flags().BoolVarP(&opts.DeleteRelated, "prs", "", false, "Whether to delete Pipeline(s) and related resources (PipelineRuns) (default: false)")
c.Flags().BoolVarP(&opts.DeleteAllNs, "all", "", false, "Delete all Pipelines in a namespace (default: false)")
c.Flags().BoolVarP(&opts.DeleteAllNs, "all", "a", false, "Delete all Pipelines in a namespace (default: false)")

return c
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/cmd/pipelinerun/delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ or
c.Flags().IntVarP(&opts.Keep, "keep", "", 0, "Keep n most recent number of PipelineRuns")
c.Flags().IntVarP(&opts.KeepSince, "keep-since", "", 0, "When deleting all PipelineRuns keep the ones that has been completed since n minutes")
c.Flags().BoolVarP(&opts.IgnoreRunning, "ignore-running", "i", true, "ignore running PipelineRun")
c.Flags().BoolVarP(&opts.DeleteAllNs, "all", "", false, "Delete all PipelineRuns in a namespace (default: false)")
c.Flags().BoolVarP(&opts.DeleteAllNs, "all", "a", false, "Delete all PipelineRuns in a namespace (default: false)")
c.Flags().StringVarP(&opts.LabelSelector, "label", "", opts.LabelSelector, "A selector (label query) to filter on when running with --all, supports '=', '==', and '!='")
return c
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/cmd/task/delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ or
f.AddFlags(c)
c.Flags().BoolVarP(&opts.ForceDelete, "force", "f", false, "Whether to force deletion (default: false)")
c.Flags().BoolVarP(&opts.DeleteRelated, "trs", "", false, "Whether to delete Task(s) and related resources (TaskRuns) (default: false)")
c.Flags().BoolVarP(&opts.DeleteAllNs, "all", "", false, "Delete all Tasks in a namespace (default: false)")
c.Flags().BoolVarP(&opts.DeleteAllNs, "all", "a", false, "Delete all Tasks in a namespace (default: false)")

return c
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/cmd/taskrun/delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ or
c.Flags().BoolVarP(&opts.ForceDelete, "force", "f", false, "Whether to force deletion (default: false)")
c.Flags().StringVarP(&deleteOpts.TaskName, "task", "t", "", "The name of a Task whose TaskRuns should be deleted (does not delete the task)")
c.Flags().StringVarP(&deleteOpts.ClusterTaskName, "clustertask", "", "", "The name of a ClusterTask whose TaskRuns should be deleted (does not delete the ClusterTask)")
c.Flags().BoolVarP(&opts.DeleteAllNs, "all", "", false, "Delete all TaskRuns in a namespace (default: false)")
c.Flags().BoolVarP(&opts.DeleteAllNs, "all", "a", false, "Delete all TaskRuns in a namespace (default: false)")
c.Flags().IntVarP(&opts.Keep, "keep", "", 0, "Keep n most recent number of TaskRuns")
c.Flags().IntVarP(&opts.KeepSince, "keep-since", "", 0, "When deleting all TaskRuns keep the ones that has been completed since n minutes")
c.Flags().BoolVarP(&opts.IgnoreRunning, "ignore-running", "i", true, "ignore running TaskRun")
Expand Down
2 changes: 1 addition & 1 deletion pkg/cmd/triggerbinding/delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ or
}
f.AddFlags(c)
c.Flags().BoolVarP(&opts.ForceDelete, "force", "f", false, "Whether to force deletion (default: false)")
c.Flags().BoolVarP(&opts.DeleteAllNs, "all", "", false, "Delete all TriggerBindings in a namespace (default: false)")
c.Flags().BoolVarP(&opts.DeleteAllNs, "all", "a", false, "Delete all TriggerBindings in a namespace (default: false)")

return c
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/cmd/triggertemplate/delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ or
}
f.AddFlags(c)
c.Flags().BoolVarP(&opts.ForceDelete, "force", "f", false, "Whether to force deletion (default: false)")
c.Flags().BoolVarP(&opts.DeleteAllNs, "all", "", false, "Delete all TriggerTemplates in a namespace (default: false)")
c.Flags().BoolVarP(&opts.DeleteAllNs, "all", "a", false, "Delete all TriggerTemplates in a namespace (default: false)")

return c
}
Expand Down