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 26 forks source link

`tilesets view-recipe` confusingly includes recipe wrapper #126

Open e-n-f opened 3 years ago

e-n-f commented 3 years ago
(python-venv) ➤ tilesets view-recipe enf.countries-center
{"recipe": {"version": 1, "layers": {"countries": {"minzoom": 0, "maxzoom": 5, "source": "mapbox://tileset-source/enf/countries"}}}, "id": "enf.countries-center"}

The output includes a JSON wrapper containing recipe and id. It would be more useful to strip out this level so that the output was directly suitable as input to tilesets create or tilesets update-recipe instead of having to be edited first.