Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

automatic pagination #6

Open
russbiggs opened this issue Aug 30, 2023 · 0 comments
Open

automatic pagination #6

russbiggs opened this issue Aug 30, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@russbiggs
Copy link
Member

a nice higher level feature to implement would be automatic pagination. Currently one can use the --page flag to fetch a particular page. In the case of large result sets this would require multiple commands --page 1, --page 2, --page 3 etc. until reaching the end of the set.

A --paginate flag would automatic this looping and return the full result set once all requests are complete. I think we would want to make this mutually exclusive from --limit and hard code a set limit value to prevent too many requests from a limit set too low. e.g. --limit 1 --paginate could result in thousands of requests with small response payloads. To ensure that the CLI does not chew up rate limiting too quickly we could buffer each page request with a predefined (but also configurable) delay value.

@russbiggs russbiggs added the enhancement New feature or request label Aug 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant