mapbox / mapbox/tilesets-cli

`tilesets view-recipe` confusingly includes recipe wrapper

Open
#126 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
141
Forks
27
PR merge metrics
No merged PRs in 30d

Description

```
(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.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the `tilesets view-recipe` CLI command and inspect how its output is assembled. Compare that output with the input expected by `tilesets create` and `tilesets update-recipe`; done means the command emits the recipe directly without the `recipe` and `id` wrapper.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.