Skip to content

Commit

Permalink
Remove flags from chains payload command as not used
Browse files Browse the repository at this point in the history
Signed-off-by: Puneet Punamiya [email protected]
  • Loading branch information
PuneetPunamiya authored and tekton-robot committed May 2, 2023
1 parent 964ae54 commit 5f9ade7
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 26 deletions.
8 changes: 2 additions & 6 deletions docs/cmd/tkn_chain_payload.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,8 @@ Print Tekton Chains' payload for a specific taskrun
### Options

```
--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 payload
-o, --output string Output format. One of: (json, yaml, name, go-template, go-template-file, template, templatefile, jsonpath, jsonpath-as-json, jsonpath-file).
--show-managed-fields If true, keep the managedFields when printing objects in JSON or YAML format.
-S, --skip-verify Skip verifying the payload'signature
--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].
-h, --help help for payload
-S, --skip-verify Skip verifying the payload'signature
```

### Options inherited from parent commands
Expand Down
17 changes: 0 additions & 17 deletions docs/man/man1/tkn-chain-payload.1
Original file line number Diff line number Diff line change
Expand Up @@ -19,31 +19,14 @@ Print Tekton Chains' payload for a specific taskrun


.SH OPTIONS
.PP
\fB\-\-allow\-missing\-template\-keys\fP[=true]
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.

.PP
\fB\-h\fP, \fB\-\-help\fP[=false]
help for payload

.PP
\fB\-o\fP, \fB\-\-output\fP=""
Output format. One of: (json, yaml, name, go\-template, go\-template\-file, template, templatefile, jsonpath, jsonpath\-as\-json, jsonpath\-file).

.PP
\fB\-\-show\-managed\-fields\fP[=false]
If true, keep the managedFields when printing objects in JSON or YAML format.

.PP
\fB\-S\fP, \fB\-\-skip\-verify\fP[=false]
Skip verifying the payload'signature

.PP
\fB\-\-template\fP=""
Template string or path to template file to use when \-o=go\-template, \-o=go\-template\-file. The template format is golang templates [
\[la]http://golang.org/pkg/text/template/#pkg-overview\[ra]].


.SH OPTIONS INHERITED FROM PARENT COMMANDS
.PP
Expand Down
3 changes: 0 additions & 3 deletions pkg/cmd/chain/payload.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ import (
"github.com/tektoncd/cli/pkg/cli"
"github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
cliopts "k8s.io/cli-runtime/pkg/genericclioptions"
)

type PayloadOptions struct {
Expand All @@ -35,7 +34,6 @@ type PayloadOptions struct {

func payloadCommand(p cli.Params) *cobra.Command {
opts := &PayloadOptions{}
f := cliopts.NewPrintFlags("chains")

c := &cobra.Command{
Use: "payload",
Expand Down Expand Up @@ -70,7 +68,6 @@ func payloadCommand(p cli.Params) *cobra.Command {
return printPayloads(cs, chainsNamespace, taskrun, skipVerify)
},
}
f.AddFlags(c)
c.Flags().BoolVarP(&opts.SkipVerify, "skip-verify", "S", opts.SkipVerify, "Skip verifying the payload'signature")

return c
Expand Down

0 comments on commit 5f9ade7

Please sign in to comment.