From 12454e3f892cd6016eac46a04d7d0a805fd2cb11 Mon Sep 17 00:00:00 2001 From: Daniel Helfand Date: Thu, 12 Mar 2020 20:43:50 -0400 Subject: [PATCH] change pipelineruns to taskruns for tkn tr delete --keep desc --- docs/cmd/tkn_taskrun_delete.md | 2 +- docs/man/man1/tkn-taskrun-delete.1 | 2 +- pkg/cmd/taskrun/delete.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/cmd/tkn_taskrun_delete.md b/docs/cmd/tkn_taskrun_delete.md index 003437528..8e88943f4 100644 --- a/docs/cmd/tkn_taskrun_delete.md +++ b/docs/cmd/tkn_taskrun_delete.md @@ -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 - --keep int Keep n least recent number of pipelineruns when deleting alls + --keep int Keep n least recent number of taskruns when using --all with delete -o, --output string Output format. One of: json|yaml|name|go-template|go-template-file|template|templatefile|jsonpath|jsonpath-file. -t, --task string The name of a task whose taskruns should be deleted (does not delete the task) --template string Template string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview]. diff --git a/docs/man/man1/tkn-taskrun-delete.1 b/docs/man/man1/tkn-taskrun-delete.1 index 4d93b5076..e4c157dc5 100644 --- a/docs/man/man1/tkn-taskrun-delete.1 +++ b/docs/man/man1/tkn-taskrun-delete.1 @@ -37,7 +37,7 @@ Delete taskruns in a namespace .PP \fB\-\-keep\fP=0 - Keep n least recent number of pipelineruns when deleting alls + Keep n least recent number of taskruns when using \-\-all with delete .PP \fB\-o\fP, \fB\-\-output\fP="" diff --git a/pkg/cmd/taskrun/delete.go b/pkg/cmd/taskrun/delete.go index 4f13b552a..e8fd75391 100644 --- a/pkg/cmd/taskrun/delete.go +++ b/pkg/cmd/taskrun/delete.go @@ -71,7 +71,7 @@ or c.Flags().BoolVarP(&opts.ForceDelete, "force", "f", false, "Whether to force deletion (default: false)") c.Flags().StringVarP(&opts.ParentResourceName, "task", "t", "", "The name of a task whose taskruns should be deleted (does not delete the task)") c.Flags().BoolVarP(&opts.DeleteAllNs, "all", "", false, "Delete all taskruns in a namespace (default: false)") - c.Flags().IntVarP(&opts.Keep, "keep", "", 0, "Keep n least recent number of pipelineruns when deleting alls") + c.Flags().IntVarP(&opts.Keep, "keep", "", 0, "Keep n least recent number of taskruns when using --all with delete") _ = c.MarkZshCompPositionalArgumentCustom(1, "__tkn_get_taskrun") return c }