cli/pkg/cmd/agent-task/capi
Max Beizer 7241b42ecf Add --json support to gh agent-task view
Add --json, --jq, and --template flags to `gh agent-task view`,
consistent with the pattern used by `gh pr view --json`,
`gh issue view --json`, etc.

This reuses the same ExportData interface and SessionFields defined
for list, applying them to the single-session view output.

Closes https://github.com/cli/cli/issues/12805 (partial)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-02-28 09:22:28 -06:00
..
client.go fix(agent-task/capi): fix capi API version 2026-02-20 18:04:12 +00:00
client_mock.go Add custom agent support to job creation 2025-10-31 14:57:48 -06:00
job.go Update pkg/cmd/agent-task/capi/job.go 2025-10-31 16:06:37 -06:00
job_test.go Refactor cfg out of CAPI Client 2025-11-14 20:21:54 +01:00
sessions.go Add --json support to gh agent-task view 2026-02-28 09:22:28 -06:00
sessions_test.go Refactor cfg out of CAPI Client 2025-11-14 20:21:54 +01:00