-
Notifications
You must be signed in to change notification settings - Fork 250
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This will add the trigger client to the cli and add the subcommand triggertemplate to the tkn cli This will add the list or ls command to triggertemplate group Add tests and docs Part of #530
- Loading branch information
1 parent
369ab71
commit 89e99a4
Showing
103 changed files
with
8,510 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
## tkn triggertemplate | ||
|
||
Manage triggertemplates | ||
|
||
***Aliases**: tt,triggertemplates* | ||
|
||
### Synopsis | ||
|
||
Manage triggertemplates | ||
|
||
### Options | ||
|
||
``` | ||
-c, --context string name of the kubeconfig context to use (default: kubectl config current-context) | ||
-h, --help help for triggertemplate | ||
-k, --kubeconfig string kubectl config file (default: $HOME/.kube/config) | ||
-n, --namespace string namespace to use (default: from $KUBECONFIG) | ||
-C, --nocolour disable colouring (default: false) | ||
``` | ||
|
||
### SEE ALSO | ||
|
||
* [tkn](tkn.md) - CLI for tekton pipelines | ||
* [tkn triggertemplate list](tkn_triggertemplate_list.md) - Lists triggertemplates in a namespace | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
## tkn triggertemplate list | ||
|
||
Lists triggertemplates in a namespace | ||
|
||
***Aliases**: ls* | ||
|
||
### Usage | ||
|
||
``` | ||
tkn triggertemplate list | ||
``` | ||
|
||
### Synopsis | ||
|
||
Lists triggertemplates in a namespace | ||
|
||
### Examples | ||
|
||
List all triggertemplates in namespace 'bar': | ||
|
||
tkn triggertemplate list -n bar | ||
|
||
or | ||
|
||
tkn tt ls -n bar | ||
|
||
|
||
### 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 list | ||
-o, --output string Output format. One of: json|yaml|name|go-template|go-template-file|template|templatefile|jsonpath|jsonpath-file. | ||
--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]. | ||
``` | ||
|
||
### Options inherited from parent commands | ||
|
||
``` | ||
-c, --context string name of the kubeconfig context to use (default: kubectl config current-context) | ||
-k, --kubeconfig string kubectl config file (default: $HOME/.kube/config) | ||
-n, --namespace string namespace to use (default: from $KUBECONFIG) | ||
-C, --nocolour disable colouring (default: false) | ||
``` | ||
|
||
### SEE ALSO | ||
|
||
* [tkn triggertemplate](tkn_triggertemplate.md) - Manage triggertemplates | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
.TH "TKN\-TRIGGERTEMPLATE\-LIST" "1" "" "Auto generated by spf13/cobra" "" | ||
.nh | ||
.ad l | ||
|
||
|
||
.SH NAME | ||
.PP | ||
tkn\-triggertemplate\-list \- Lists triggertemplates in a namespace | ||
|
||
|
||
.SH SYNOPSIS | ||
.PP | ||
\fBtkn triggertemplate list\fP | ||
|
||
|
||
.SH DESCRIPTION | ||
.PP | ||
Lists triggertemplates in a namespace | ||
|
||
|
||
.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 list | ||
|
||
.PP | ||
\fB\-o\fP, \fB\-\-output\fP="" | ||
Output format. One of: json|yaml|name|go\-template|go\-template\-file|template|templatefile|jsonpath|jsonpath\-file. | ||
|
||
.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 | ||
\fB\-c\fP, \fB\-\-context\fP="" | ||
name of the kubeconfig context to use (default: kubectl config current\-context) | ||
|
||
.PP | ||
\fB\-k\fP, \fB\-\-kubeconfig\fP="" | ||
kubectl config file (default: $HOME/.kube/config) | ||
|
||
.PP | ||
\fB\-n\fP, \fB\-\-namespace\fP="" | ||
namespace to use (default: from $KUBECONFIG) | ||
|
||
.PP | ||
\fB\-C\fP, \fB\-\-nocolour\fP[=false] | ||
disable colouring (default: false) | ||
|
||
|
||
.SH EXAMPLE | ||
.PP | ||
List all triggertemplates in namespace 'bar': | ||
|
||
.PP | ||
.RS | ||
|
||
.nf | ||
tkn triggertemplate list \-n bar | ||
|
||
.fi | ||
.RE | ||
|
||
.PP | ||
or | ||
|
||
.PP | ||
.RS | ||
|
||
.nf | ||
tkn tt ls \-n bar | ||
|
||
.fi | ||
.RE | ||
|
||
|
||
.SH SEE ALSO | ||
.PP | ||
\fBtkn\-triggertemplate(1)\fP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
.TH "TKN\-TRIGGERTEMPLATE" "1" "" "Auto generated by spf13/cobra" "" | ||
.nh | ||
.ad l | ||
|
||
|
||
.SH NAME | ||
.PP | ||
tkn\-triggertemplate \- Manage triggertemplates | ||
|
||
|
||
.SH SYNOPSIS | ||
.PP | ||
\fBtkn triggertemplate\fP | ||
|
||
|
||
.SH DESCRIPTION | ||
.PP | ||
Manage triggertemplates | ||
|
||
|
||
.SH OPTIONS | ||
.PP | ||
\fB\-c\fP, \fB\-\-context\fP="" | ||
name of the kubeconfig context to use (default: kubectl config current\-context) | ||
|
||
.PP | ||
\fB\-h\fP, \fB\-\-help\fP[=false] | ||
help for triggertemplate | ||
|
||
.PP | ||
\fB\-k\fP, \fB\-\-kubeconfig\fP="" | ||
kubectl config file (default: $HOME/.kube/config) | ||
|
||
.PP | ||
\fB\-n\fP, \fB\-\-namespace\fP="" | ||
namespace to use (default: from $KUBECONFIG) | ||
|
||
.PP | ||
\fB\-C\fP, \fB\-\-nocolour\fP[=false] | ||
disable colouring (default: false) | ||
|
||
|
||
.SH SEE ALSO | ||
.PP | ||
\fBtkn(1)\fP, \fBtkn\-triggertemplate\-list(1)\fP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.