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 <shverma@redhat.com>
  • Loading branch information
pratap0007 committed Apr 25, 2023
1 parent 422eab6 commit 5feca8d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
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
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
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

0 comments on commit 5feca8d

Please sign in to comment.