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

This implements the ExportData interface on capi.Session and defines
SessionFields for the available JSON fields:
id, name, status, repository, createdAt, updatedAt,
pullRequestNumber, pullRequestUrl.

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

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-02-28 09:20:13 -06:00
..
accessibility PR feedback 2025-04-30 15:05:07 -04:00
actions Remove trailing whitespace 2025-02-13 11:06:27 +05:00
agent-task Add --json support to gh agent-task list 2026-02-28 09:20:13 -06:00
alias Fixes #10590 2025-03-26 13:42:39 -04:00
api docs(api): add example for --input option 2025-10-31 13:44:17 +00:00
attestation chore: apply go fix to remove deprecated // +build tags 2025-10-30 21:10:45 +00:00
auth refactor(auth refresh): use PlainHttpClient instead of zero http.Client 2025-10-13 16:51:13 +01:00
browse Add tests of browse --actions 2025-12-11 11:31:12 +00:00
cache fix(cache delete): add unit tests and expand help doc 2026-01-20 08:30:34 +01:00
codespace fix: resolve copyloopvar issues 2025-11-03 20:05:26 +00:00
completion Remove trailing whitespace 2025-02-13 11:06:27 +05:00
config Merge pull request #11003 from cli/kw-bks/enclose-config-options-in-code-blocks 2025-05-22 10:14:14 -06:00
copilot test(copilot): fix windows asset URL 2026-01-20 10:33:19 +00:00
extension Update actions/checkout to v6 in extension workflow templates 2025-12-30 23:39:34 +09:00
factory pin REST API version to 2022-11-28 2026-02-13 19:46:16 +01:00
gist Add usage examples to gh gist edit command 2026-02-17 12:38:15 -07:00
gpg-key Fix StatusJSONResponse usage (#10810) 2025-05-01 20:22:43 +01:00
issue Add missing TODO comments for featuredetection if-statements 2026-02-16 14:24:32 -07:00
label Introduce color_labels support, update commands 2025-04-02 18:24:20 -04:00
licenses Bundle licenses at release time (#12625) 2026-02-18 17:59:27 +01:00
org Move config interfaces into gh package (#9060) 2024-05-10 10:39:36 +02:00
pr Add missing TODO comments for featuredetection if-statements 2026-02-16 14:24:32 -07:00
preview Refactor MultiSelectWithSearch to use result struct 2026-01-26 13:29:22 -07:00
project Fix project mutation query variable usage 2026-02-23 07:13:07 -07:00
release Clarify --clobber flag deletes assets before re-uploading 2026-02-17 18:11:57 -07:00
repo Add missing TODO comments for featuredetection if-statements 2026-02-16 14:24:32 -07:00
root Bundle licenses at release time (#12625) 2026-02-18 17:59:27 +01:00
ruleset Remove trailing whitespace 2025-02-13 11:06:27 +05:00
run Respect --exit-status with --log and --log-failed 2026-02-13 16:04:06 +01:00
search docs(search prs): mention advanced issue search syntax support 2025-09-08 18:37:37 +01:00
secret refactor: drop multierror in favor of std 2025-12-02 15:08:58 +01:00
ssh-key Remove out of scope changes, update list commands 2025-03-31 11:58:30 -04:00
status Deprecate ColorScheme.Gray for ColorScheme.Muted 2025-04-06 10:18:48 -04:00
variable refactor: drop multierror in favor of std 2025-12-02 15:08:58 +01:00
version Fix --version flag printing to stdout 2022-05-24 16:21:13 +02:00
workflow fix(workflow run): bail out on feature detection error 2026-02-17 11:48:25 +00:00