Repository navigation
docs: add JSON/YAML output examples to list command help - #3269
Conversation
Add `-o json` and `-o yaml` examples to the help text for list commands across core Tekton resources (pipeline, task, pipelinerun, taskrun, customrun) and Triggers resources (eventlistener, triggerbinding, clustertriggerbinding, triggertemplate). Signed-off-by: Arvind <arvkrish@redhat.com>
d5937a1 to
9b76913
Compare
|
/retest |
1 similar comment
|
/retest |
There was a problem hiding this comment.
🟡 Changes recommended
Clarify that JSON/YAML output is a Kubernetes list resource containing an items field.
Get a fresh assessment by requesting another Copilot review.
Pull request overview
Adds JSON/YAML output examples to nine Tekton and Triggers list-command help texts, with regenerated documentation.
Changes:
- Adds
-o jsonand-o yamlexamples. - Regenerates Markdown command references and manpages.
File summaries
| File | Reviewed change |
|---|---|
pkg/cmd/triggertemplate/list.go |
Adds JSON/YAML list-output examples. |
pkg/cmd/triggerbinding/list.go |
Adds JSON/YAML list-output examples. |
pkg/cmd/taskrun/list.go |
Adds JSON/YAML list-output examples. |
pkg/cmd/task/list.go |
Adds JSON/YAML list-output examples. |
pkg/cmd/pipelinerun/list.go |
Adds JSON/YAML list-output examples. |
pkg/cmd/pipeline/list.go |
Adds JSON/YAML list-output examples. |
pkg/cmd/eventlistener/list.go |
Adds JSON/YAML list-output examples. |
pkg/cmd/customrun/list.go |
Adds JSON/YAML list-output examples. |
pkg/cmd/clustertriggerbinding/list.go |
Adds JSON/YAML list-output examples. |
docs/man/man1/tkn-triggertemplate-list.1 |
Regenerated command documentation. |
docs/man/man1/tkn-triggerbinding-list.1 |
Regenerated command documentation. |
docs/man/man1/tkn-taskrun-list.1 |
Regenerated command documentation. |
docs/man/man1/tkn-task-list.1 |
Regenerated command documentation. |
docs/man/man1/tkn-pipelinerun-list.1 |
Regenerated command documentation. |
docs/man/man1/tkn-pipeline-list.1 |
Regenerated command documentation. |
docs/man/man1/tkn-eventlistener-list.1 |
Regenerated command documentation. |
docs/man/man1/tkn-customrun-list.1 |
Regenerated command documentation. |
docs/man/man1/tkn-clustertriggerbinding-list.1 |
Regenerated command documentation. |
docs/cmd/tkn_triggertemplate_list.md |
Regenerated command documentation. |
docs/cmd/tkn_triggerbinding_list.md |
Regenerated command documentation. |
docs/cmd/tkn_taskrun_list.md |
Regenerated command documentation. |
docs/cmd/tkn_task_list.md |
Regenerated command documentation. |
docs/cmd/tkn_pipelinerun_list.md |
Regenerated command documentation. |
docs/cmd/tkn_pipeline_list.md |
Regenerated command documentation. |
docs/cmd/tkn_eventlistener_list.md |
Regenerated command documentation. |
docs/cmd/tkn_customrun_list.md |
Regenerated command documentation. |
docs/cmd/tkn_clustertriggerbinding_list.md |
Regenerated command documentation. |
Review details
- Files reviewed: 27/27 changed files
- Comments generated: 9
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
| List ClusterTriggerBindings as a JSON array: | ||
|
|
||
| tkn clustertriggerbinding list -o json | ||
|
|
||
| List ClusterTriggerBindings as a YAML array: |
| List CustomRuns as a JSON array: | ||
|
|
||
| tkn customrun list -o json | ||
|
|
||
| List CustomRuns as a YAML array: |
| List EventListeners as a JSON array: | ||
|
|
||
| tkn eventlistener list -o json | ||
|
|
||
| List EventListeners as a YAML array: |
| List Pipelines as a JSON array: | ||
|
|
||
| tkn pipeline list -o json | ||
|
|
||
| List Pipelines as a YAML array: |
| List PipelineRuns as a JSON array: | ||
|
|
||
| tkn pipelinerun list -o json | ||
|
|
||
| List PipelineRuns as a YAML array: |
| List Tasks as a JSON array: | ||
|
|
||
| tkn task list -o json | ||
|
|
||
| List Tasks as a YAML array: |
| List TaskRuns as a JSON array: | ||
|
|
||
| tkn taskrun list -o json | ||
|
|
||
| List TaskRuns as a YAML array: |
| List TriggerBindings as a JSON array: | ||
|
|
||
| tkn triggerbinding list -o json | ||
|
|
||
| List TriggerBindings as a YAML array: |
| List TriggerTemplates as a JSON array: | ||
|
|
||
| tkn triggertemplate list -o json | ||
|
|
||
| List TriggerTemplates as a YAML array: |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: divyansh42 The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/lgtm |
Part of #2850
Changes
Add
-o jsonand-o yamlexamples to the help text for list commands across core Tekton resources (pipeline, task, pipelinerun, taskrun, customrun) and Triggers resources (eventlistener, triggerbinding, clustertriggerbinding, triggertemplate).Submitter Checklist
These are the criteria that every PR should meet, please check them off as you
review them:
make checkmake generatedSee the contribution guide
for more details.
Release Notes