Output a single JSON document from `api --paginate` · Issue #1268 · cli/cli · GitHub
Skip to content

Output a single JSON document from api --paginate #1268

Description

@carnei-ro

First of all, thanks for the --paginate flag. Although I'd like to get one array of objects instead. Today I'm using jq to do the work:

gh api --paginate repos/me/my-repo/pulls/5/files | jq 'reduce inputs as $i (.; . += $i)'

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementa request to improve CLIgh-apirelating to the gh api commandhelp wantedContributions welcome

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions