Summary
Not all tkn commands support --output json. This makes it unreliable for AI agents and scripts that need machine-readable output.
Current State
start --dry-run supports --output json/yaml
list commands use Go template tables, some support --output via PrintObjects
describe commands have custom formatted output, some support --output via PrintObjectV1
logs, delete, cancel have no structured output
Proposal
- Add
--output json and --output yaml to every command that produces output
- Auto-detect non-TTY stdout and default to JSON (opt-out with
--output table)
- Support
TKN_OUTPUT_FORMAT=json environment variable for session-wide default
- Ensure all JSON output goes to stdout, all status/progress messages to stderr
Commands to update
/kind feature
Summary
Not all
tkncommands support--output json. This makes it unreliable for AI agents and scripts that need machine-readable output.Current State
start --dry-runsupports--output json/yamllistcommands use Go template tables, some support--outputviaPrintObjectsdescribecommands have custom formatted output, some support--outputviaPrintObjectV1logs,delete,cancelhave no structured outputProposal
--output jsonand--output yamlto every command that produces output--output table)TKN_OUTPUT_FORMAT=jsonenvironment variable for session-wide defaultCommands to update
pipeline list/describe/start/deletepipelinerun list/describe/delete/cancel/logstask list/describe/start/deletetaskrun list/describe/delete/cancel/logscustomrun list/describe/deletebundle list/pusheventlistener list/describetriggerbinding list/describetriggertemplate list/describeclustertriggerbinding list/describe/kind feature