mapbox / tilesets-cli

CLI for interacting with the Mapbox Tilesets API and Mapbox Tiling Service
https://docs.mapbox.com/mapbox-tiling-service
BSD 2-Clause "Simplified" License
125 stars 27 forks source link

`tilesets list` only shows the last 100 tilesets #135

Open e-n-f opened 3 years ago

e-n-f commented 3 years ago
➤ tilesets list enf | wc -l
     100

The number should be much larger.

mapsam commented 3 years ago

@ericfischer for paginated endpoints, such as the tileset list endpoint, we should add a new CLI option like --pages that can auto-paginate for us.

--pages=1 (one page, default, 100 tilesets)
--pages=2 (two pages)
--pages=Infinity (all pages)

Before doing this I'd like to find some other CLI tools that do something similar (perhaps AWS CLI?) to follow some common patterns.