Skip to content

Commit

Permalink
Remove default value info for true flag in delete command
Browse files Browse the repository at this point in the history
This patch removes default value info of flag as default value
of flag is true and default value info will be added by default

Signed-off-by: Shiv Verma <[email protected]>
  • Loading branch information
pratap0007 authored and tekton-robot committed May 2, 2023
1 parent 5f9ade7 commit 008ddd5
Show file tree
Hide file tree
Showing 12 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion docs/cmd/tkn_pipelinerun_delete.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ or
--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
-i, --ignore-running ignore running PipelineRun (default: true) (default true)
-i, --ignore-running ignore running PipelineRun (default true)
--keep int Keep n most recent number of PipelineRuns
--keep-since int When deleting all PipelineRuns keep the ones that has been completed since n minutes
--label string A selector (label query) to filter on when running with --all, supports '=', '==', and '!='
Expand Down
2 changes: 1 addition & 1 deletion docs/cmd/tkn_pipelinerun_list.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ List all PipelineRuns in a namespace 'foo':
--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)
-h, --help help for list
--label string A selector (label query) to filter on, supports '=', '==', and '!='
--limit int limit PipelineRuns listed (default: return all PipelineRuns)
--limit int Limits the number of PipelineRuns. If the limit value is 0 returns all
--no-headers do not print column headers with output (default print column headers with output)
-o, --output string Output format. One of: (json, yaml, name, go-template, go-template-file, template, templatefile, jsonpath, jsonpath-as-json, jsonpath-file).
--reverse list PipelineRuns in reverse order
Expand Down
4 changes: 2 additions & 2 deletions docs/cmd/tkn_taskrun_delete.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ or
--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)
-h, --help help for delete
-i, --ignore-running ignore running TaskRun (default: true) (default true)
--ignore-running-pipelinerun ignore deleting taskruns of a running PipelineRun (default: true) (default true)
-i, --ignore-running ignore running TaskRun (default true)
--ignore-running-pipelinerun ignore deleting taskruns of a running PipelineRun (default true)
--keep int Keep n most recent number of TaskRuns
--keep-since int When deleting all TaskRuns keep the ones that has been completed since n minutes
-o, --output string Output format. One of: (json, yaml, name, go-template, go-template-file, template, templatefile, jsonpath, jsonpath-as-json, jsonpath-file).
Expand Down
2 changes: 1 addition & 1 deletion docs/cmd/tkn_taskrun_list.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ List all TaskRuns of Task 'foo' in namespace 'bar':
--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)
-h, --help help for list
--label string A selector (label query) to filter on, supports '=', '==', and '!='
--limit int limit TaskRuns listed (default: return all TaskRuns)
--limit int Limits the number of TaskRuns. If the limit value is 0 returns all
--no-headers do not print column headers with output (default print column headers with output)
-o, --output string Output format. One of: (json, yaml, name, go-template, go-template-file, template, templatefile, jsonpath, jsonpath-as-json, jsonpath-file).
--reverse list TaskRuns in reverse order
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 @@ -37,7 +37,7 @@ Delete PipelineRuns in a namespace

.PP
\fB\-i\fP, \fB\-\-ignore\-running\fP[=true]
ignore running PipelineRun (default: true)
ignore running PipelineRun

.PP
\fB\-\-keep\fP=0
Expand Down
2 changes: 1 addition & 1 deletion docs/man/man1/tkn-pipelinerun-list.1
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Lists PipelineRuns in a namespace

.PP
\fB\-\-limit\fP=0
limit PipelineRuns listed (default: return all PipelineRuns)
Limits the number of PipelineRuns. If the limit value is 0 returns all

.PP
\fB\-\-no\-headers\fP[=false]
Expand Down
4 changes: 2 additions & 2 deletions docs/man/man1/tkn-taskrun-delete.1
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@ Delete TaskRuns in a namespace

.PP
\fB\-i\fP, \fB\-\-ignore\-running\fP[=true]
ignore running TaskRun (default: true)
ignore running TaskRun

.PP
\fB\-\-ignore\-running\-pipelinerun\fP[=true]
ignore deleting taskruns of a running PipelineRun (default: true)
ignore deleting taskruns of a running PipelineRun

.PP
\fB\-\-keep\fP=0
Expand Down
2 changes: 1 addition & 1 deletion docs/man/man1/tkn-taskrun-list.1
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Lists TaskRuns in a namespace

.PP
\fB\-\-limit\fP=0
limit TaskRuns listed (default: return all TaskRuns)
Limits the number of TaskRuns. If the limit value is 0 returns all

.PP
\fB\-\-no\-headers\fP[=false]
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 @@ -127,7 +127,7 @@ or
c.Flags().StringVarP(&opts.ParentResourceName, "pipeline", "p", "", "The name of a Pipeline whose PipelineRuns should be deleted (does not delete the Pipeline)")
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 (default: true)")
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().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/pipelinerun/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ List all PipelineRuns in a namespace 'foo':
}

f.AddFlags(c)
c.Flags().IntVarP(&opts.Limit, "limit", "", 0, "limit PipelineRuns listed (default: return all PipelineRuns)")
c.Flags().IntVarP(&opts.Limit, "limit", "", 0, "Limits the number of PipelineRuns. If the limit value is 0 returns all")
c.Flags().StringVarP(&opts.LabelSelector, "label", "", opts.LabelSelector, "A selector (label query) to filter on, supports '=', '==', and '!='")
c.Flags().BoolVarP(&opts.Reverse, "reverse", "", opts.Reverse, "list PipelineRuns in reverse order")
c.Flags().BoolVarP(&opts.AllNamespaces, "all-namespaces", "A", opts.AllNamespaces, "list PipelineRuns from all namespaces")
Expand Down
4 changes: 2 additions & 2 deletions pkg/cmd/taskrun/delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,8 @@ or
c.Flags().BoolVarP(&opts.DeleteAllNs, "all", "", 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 (default: true)")
c.Flags().BoolVarP(&opts.IgnoreRunningPipelinerun, "ignore-running-pipelinerun", "", true, "ignore deleting taskruns of a running PipelineRun (default: true)")
c.Flags().BoolVarP(&opts.IgnoreRunning, "ignore-running", "i", true, "ignore running TaskRun")
c.Flags().BoolVarP(&opts.IgnoreRunningPipelinerun, "ignore-running-pipelinerun", "", true, "ignore deleting taskruns of a running PipelineRun")

return c
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/cmd/taskrun/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ List all TaskRuns of Task 'foo' in namespace 'bar':
}

f.AddFlags(c)
c.Flags().IntVarP(&opts.Limit, "limit", "", 0, "limit TaskRuns listed (default: return all TaskRuns)")
c.Flags().IntVarP(&opts.Limit, "limit", "", 0, "Limits the number of TaskRuns. If the limit value is 0 returns all")
c.Flags().StringVarP(&opts.LabelSelector, "label", "", opts.LabelSelector, "A selector (label query) to filter on, supports '=', '==', and '!='")
c.Flags().BoolVarP(&opts.Reverse, "reverse", "", opts.Reverse, "list TaskRuns in reverse order")
c.Flags().BoolVarP(&opts.AllNamespaces, "all-namespaces", "A", opts.AllNamespaces, "list TaskRuns from all namespaces")
Expand Down

0 comments on commit 008ddd5

Please sign in to comment.