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

wildcard in tileset delete #90

Open
bw4sz opened this issue Jul 22, 2020 · 0 comments
Open

wildcard in tileset delete #90

bw4sz opened this issue Jul 22, 2020 · 0 comments

Comments

@bw4sz
Copy link

bw4sz commented Jul 22, 2020

I've got a few hundred tilesets to manage, is there a potential for wildcard of tileset ids?

For example, delete any tilesets with "projected" in their id name:

(Zooniverse) MacBook-Pro:Zooniverse ben$ tilesets delete *projected*
To confirm tileset deletion please enter the full tileset id "*projected*": *projected*
Traceback (most recent call last):
  File "/Users/ben/miniconda3/envs/Zooniverse/bin/tilesets", line 8, in <module>
    sys.exit(cli())
  File "/Users/ben/miniconda3/envs/Zooniverse/lib/python3.7/site-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/Users/ben/miniconda3/envs/Zooniverse/lib/python3.7/site-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/Users/ben/miniconda3/envs/Zooniverse/lib/python3.7/site-packages/click/core.py", line 1259, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/Users/ben/miniconda3/envs/Zooniverse/lib/python3.7/site-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/Users/ben/miniconda3/envs/Zooniverse/lib/python3.7/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/Users/ben/miniconda3/envs/Zooniverse/lib/python3.7/site-packages/mapbox_tilesets/scripts/cli.py", line 220, in delete
    raise errors.TilesetsError(r.text)
mapbox_tilesets.errors.TilesetsError: {"message":"Not Found"}
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

No branches or pull requests

1 participant