-
Notifications
You must be signed in to change notification settings - Fork 262
Integrate Hub commands into tkn #1203
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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,27 @@ | ||
| ## tkn hub | ||
|
|
||
| Interact with tekton hub | ||
|
|
||
| ### Usage | ||
|
|
||
| ``` | ||
| tkn hub | ||
| ``` | ||
|
|
||
| ### Synopsis | ||
|
|
||
| Interact with tekton hub | ||
|
|
||
| ### Options | ||
|
|
||
| ``` | ||
| --api-server string Hub API Server URL (default "https://api.hub.tekton.dev") | ||
| -h, --help help for hub | ||
| ``` | ||
|
|
||
| ### SEE ALSO | ||
|
|
||
| * [tkn](tkn.md) - CLI for tekton pipelines | ||
| * [tkn hub get](tkn_hub_get.md) - Get resource manifest by its name, kind, catalog, and version | ||
| * [tkn hub search](tkn_hub_search.md) - Search resource by a combination of name, kind, and tags | ||
|
|
This file contains hidden or 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,34 @@ | ||
| ## tkn hub get | ||
|
|
||
| Get resource manifest by its name, kind, catalog, and version | ||
|
|
||
| ### Usage | ||
|
|
||
| ``` | ||
| tkn hub get | ||
| ``` | ||
|
|
||
| ### Synopsis | ||
|
|
||
| Get resource manifest by its name, kind, catalog, and version | ||
|
|
||
| ### Options | ||
|
|
||
| ``` | ||
| --from string Name of Catalog to which resource belongs to. (default "tekton") | ||
| -h, --help help for get | ||
| --version string Version of Resource | ||
| ``` | ||
|
|
||
| ### Options inherited from parent commands | ||
|
|
||
| ``` | ||
| --api-server string Hub API Server URL (default "https://api.hub.tekton.dev") | ||
| ``` | ||
|
|
||
| ### SEE ALSO | ||
|
|
||
| * [tkn hub](tkn_hub.md) - Interact with tekton hub | ||
| * [tkn hub get pipeline](tkn_hub_get_pipeline.md) - Get pipeline by name, catalog and version | ||
| * [tkn hub get task](tkn_hub_get_task.md) - Get task by name, catalog and version | ||
|
|
This file contains hidden or 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,46 @@ | ||
| ## tkn hub get pipeline | ||
|
|
||
| Get pipeline by name, catalog and version | ||
|
|
||
| ### Usage | ||
|
|
||
| ``` | ||
| tkn hub get pipeline | ||
| ``` | ||
|
|
||
| ### Synopsis | ||
|
|
||
| Get pipeline by name, catalog and version | ||
|
|
||
| ### Examples | ||
|
|
||
|
|
||
| Get a pipeline of name 'foo': | ||
|
|
||
| tkn hub get pipeline foo | ||
|
|
||
| or | ||
|
|
||
| Get a pipeline of name 'foo' of version '0.3': | ||
|
|
||
| tkn hub get pipeline foo --version 0.3 | ||
|
|
||
|
|
||
| ### Options | ||
|
|
||
| ``` | ||
| -h, --help help for pipeline | ||
| ``` | ||
|
|
||
| ### Options inherited from parent commands | ||
|
|
||
| ``` | ||
| --api-server string Hub API Server URL (default "https://api.hub.tekton.dev") | ||
| --from string Name of Catalog to which resource belongs to. (default "tekton") | ||
| --version string Version of Resource | ||
| ``` | ||
|
|
||
| ### SEE ALSO | ||
|
|
||
| * [tkn hub get](tkn_hub_get.md) - Get resource manifest by its name, kind, catalog, and version | ||
|
|
||
This file contains hidden or 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,46 @@ | ||
| ## tkn hub get task | ||
|
|
||
| Get task by name, catalog and version | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nit: This should be |
||
|
|
||
| ### Usage | ||
|
|
||
| ``` | ||
| tkn hub get task | ||
| ``` | ||
|
|
||
| ### Synopsis | ||
|
|
||
| Get task by name, catalog and version | ||
|
|
||
| ### Examples | ||
|
|
||
|
|
||
| Get a task of name 'foo': | ||
|
|
||
| tkn hub get task foo | ||
|
|
||
| or | ||
|
|
||
| Get a task of name 'foo' of version '0.3': | ||
|
|
||
| tkn hub get task foo --version 0.3 | ||
|
|
||
|
|
||
| ### Options | ||
|
|
||
| ``` | ||
| -h, --help help for task | ||
| ``` | ||
|
|
||
| ### Options inherited from parent commands | ||
|
|
||
| ``` | ||
| --api-server string Hub API Server URL (default "https://api.hub.tekton.dev") | ||
| --from string Name of Catalog to which resource belongs to. (default "tekton") | ||
| --version string Version of Resource | ||
| ``` | ||
|
|
||
| ### SEE ALSO | ||
|
|
||
| * [tkn hub get](tkn_hub_get.md) - Get resource manifest by its name, kind, catalog, and version | ||
|
|
||
This file contains hidden or 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 hub search | ||
|
sthaha marked this conversation as resolved.
Outdated
|
||
|
|
||
| Search resource by a combination of name, kind, and tags | ||
|
|
||
| ### Usage | ||
|
|
||
| ``` | ||
| tkn hub search | ||
| ``` | ||
|
|
||
| ### Synopsis | ||
|
|
||
| Search resource by a combination of name, kind, and tags | ||
|
|
||
| ### Examples | ||
|
|
||
|
|
||
| Search a resource of name 'foo': | ||
|
|
||
| tkn hub search foo | ||
|
|
||
| or | ||
|
|
||
| Search resources using tag 'cli': | ||
|
|
||
| tkn hub search --tags cli | ||
|
|
||
|
|
||
| ### Options | ||
|
|
||
| ``` | ||
| -h, --help help for search | ||
| --kinds stringArray Accepts a comma separated list of kinds | ||
| -l, --limit uint Max number of resources to fetch | ||
| --match string Accept type of search. 'exact' or 'contains'. (default "contains") | ||
| -o, --output string Accepts output format: [table, json] (default "table") | ||
| --tags stringArray Accepts a comma separated list of tags | ||
| ``` | ||
|
|
||
| ### Options inherited from parent commands | ||
|
|
||
| ``` | ||
| --api-server string Hub API Server URL (default "https://api.hub.tekton.dev") | ||
| ``` | ||
|
|
||
| ### SEE ALSO | ||
|
|
||
| * [tkn hub](tkn_hub.md) - Interact with tekton hub | ||
|
|
||
This file contains hidden or 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,73 @@ | ||
| .TH "TKN\-HUB\-GET\-PIPELINE" "1" "" "Auto generated by spf13/cobra" "" | ||
| .nh | ||
| .ad l | ||
|
|
||
|
|
||
| .SH NAME | ||
| .PP | ||
| tkn\-hub\-get\-pipeline \- Get pipeline by name, catalog and version | ||
|
|
||
|
|
||
| .SH SYNOPSIS | ||
| .PP | ||
| \fBtkn hub get pipeline\fP | ||
|
|
||
|
|
||
| .SH DESCRIPTION | ||
| .PP | ||
| Get pipeline by name, catalog and version | ||
|
|
||
|
|
||
| .SH OPTIONS | ||
| .PP | ||
| \fB\-h\fP, \fB\-\-help\fP[=false] | ||
| help for pipeline | ||
|
|
||
|
|
||
| .SH OPTIONS INHERITED FROM PARENT COMMANDS | ||
| .PP | ||
| \fB\-\-api\-server\fP=" | ||
| \[la]https://api.hub.tekton.dev"\[ra] | ||
| Hub API Server URL | ||
|
|
||
| .PP | ||
| \fB\-\-from\fP="tekton" | ||
| Name of Catalog to which resource belongs to. | ||
|
|
||
| .PP | ||
| \fB\-\-version\fP="" | ||
| Version of Resource | ||
|
|
||
|
|
||
| .SH EXAMPLE | ||
| .PP | ||
| Get a pipeline of name 'foo': | ||
|
|
||
| .PP | ||
| .RS | ||
|
|
||
| .nf | ||
| tkn hub get pipeline foo | ||
|
|
||
| .fi | ||
| .RE | ||
|
|
||
| .PP | ||
| or | ||
|
|
||
| .PP | ||
| Get a pipeline of name 'foo' of version '0.3': | ||
|
|
||
| .PP | ||
| .RS | ||
|
|
||
| .nf | ||
| tkn hub get pipeline foo \-\-version 0.3 | ||
|
|
||
| .fi | ||
| .RE | ||
|
|
||
|
|
||
| .SH SEE ALSO | ||
| .PP | ||
| \fBtkn\-hub\-get(1)\fP |
This file contains hidden or 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,73 @@ | ||
| .TH "TKN\-HUB\-GET\-TASK" "1" "" "Auto generated by spf13/cobra" "" | ||
| .nh | ||
| .ad l | ||
|
|
||
|
|
||
| .SH NAME | ||
| .PP | ||
| tkn\-hub\-get\-task \- Get task by name, catalog and version | ||
|
|
||
|
|
||
| .SH SYNOPSIS | ||
| .PP | ||
| \fBtkn hub get task\fP | ||
|
|
||
|
|
||
| .SH DESCRIPTION | ||
| .PP | ||
| Get task by name, catalog and version | ||
|
|
||
|
|
||
| .SH OPTIONS | ||
| .PP | ||
| \fB\-h\fP, \fB\-\-help\fP[=false] | ||
| help for task | ||
|
|
||
|
|
||
| .SH OPTIONS INHERITED FROM PARENT COMMANDS | ||
| .PP | ||
| \fB\-\-api\-server\fP=" | ||
| \[la]https://api.hub.tekton.dev"\[ra] | ||
| Hub API Server URL | ||
|
|
||
| .PP | ||
| \fB\-\-from\fP="tekton" | ||
| Name of Catalog to which resource belongs to. | ||
|
|
||
| .PP | ||
| \fB\-\-version\fP="" | ||
| Version of Resource | ||
|
|
||
|
|
||
| .SH EXAMPLE | ||
| .PP | ||
| Get a task of name 'foo': | ||
|
|
||
| .PP | ||
| .RS | ||
|
|
||
| .nf | ||
| tkn hub get task foo | ||
|
|
||
| .fi | ||
| .RE | ||
|
|
||
| .PP | ||
| or | ||
|
|
||
| .PP | ||
| Get a task of name 'foo' of version '0.3': | ||
|
|
||
| .PP | ||
| .RS | ||
|
|
||
| .nf | ||
| tkn hub get task foo \-\-version 0.3 | ||
|
|
||
| .fi | ||
| .RE | ||
|
|
||
|
|
||
| .SH SEE ALSO | ||
| .PP | ||
| \fBtkn\-hub\-get(1)\fP |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: This should be
Pipeline(see #605).