Add api --paginate option - #1222
Conversation
seems reasonable? why wouldn't we? |
|
1 small point: |
|
@AliabbasMerchant That's a valid point, but I still feel that "paginate" describes this feature the best since it performs "pagination" (a concept described by that term in GitHub API docs) for you. I feel that none of the alternate terms that you've suggested are established enough that we could use them as alternatives. Furthermore, I think that |
Most endpoints respect this parameter by default. Those that don't will just ignore it. The `per_page=100` parameter is not added if there is already a `per_page` parameter specified in the request.
gh api --paginate repos/:owner/:repo/issuesautomatically fetches and prints all pages of all results until there are no more pages.TODO:
per_page=100in pagination mode?Fixes #1184