Skip to content

Add --all to repos list, cleanup pagination ux #580

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

Merged
merged 1 commit into from
May 21, 2025
Merged

Add --all to repos list, cleanup pagination ux #580

merged 1 commit into from
May 21, 2025

Conversation

pvdz
Copy link
Collaborator

@pvdz pvdz commented May 21, 2025

We never really looked into this but all these list commands have a pretty bad UX around pagination. In particular being notified whether there is more left to be fetched, or an ability to just batch-fetch them all. So this PR fixes that for the socket repos list command. Should probably do this for all the others too (or at least where it makes sense, not for something like scans which may have any number).

Now you can do socket repos list --all to fetch all repos (up to 10k results).

The result will also tell you more about the query, page state, and whether there is more data left to be fetched. It will also give you a hint on how to fetch the next page (we should do that more often).

@pvdz pvdz merged commit 2025104 into main May 21, 2025
14 checks passed
@pvdz pvdz deleted the reposall branch May 21, 2025 14:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants