Skip to content

Allow --jq and --template to be used together in gh api #10261

@0xdevalias

Description

@0xdevalias

Describe the feature or problem you’d like to solve

When using gh api, I would like to be able to use the expressive power of --jq to manipulate/filter the JSON response data, and then --template to render it, but currently that doesn't seem to be allowed:

Proposed solution

If it were possible to pass both --jq and --template together, then users would have more expressive ability to manipulate API response data through gh api without having to resort to moving to external tools/processing.

In particular, this would allow users to use --jq's deeper functionality for manipulation, while leveraging --template's simple/clean syntax for rendering the output.

Additional context

See also:

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicatethis is already captured in another issueenhancementa request to improve CLI

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions