Shtab

Latest version: v1.7.1

Safety actively analyzes 682416 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 6 of 7

1.3.0

- :hammer: fix bash missing custom complete functionality (`add_argument().complete = ...`)
- :hammer: fix subcommand completion & update `examples/customcomplete.py`
- :tada: add `shtab.add_argument_to(parser, option_string)` (18)
+ option: adds `your_cli_app [--print-completion={bash,zsh}]`
+ subcommand: adds `your_cli_app completion [{bash,zsh}]`
+ handles the `print(shtab.complete(parser, shell))` & `exit(0)` logic too
- :tada: expose `SUPPORTED_SHELLS`
- :book: add & update documentation
- :mag: add tests
- :broom: misc tidy

1.2.0

- :tada: add `--prog` override (16)
- :tada: search curdir for modules (17 <- 12)
- :mag: add & update tests

1.1.1

![](https://github.com/iterative/shtab/raw/master/meta/logo.png)

- :hammer: fix `AssertionError` on valid choices (15 <- 14)
- :left_right_arrow: add logo (13)
- :mag: add tests
- :hammer_and_wrench: misc framework updates
+ fix & update deploy bot helpers
+ tidy setup.py

1.1.0

- add new custom-complete API `add_argument().complete = shtab.FILE or shtab.DIR or dict(zsh=..., bash=...)` (9)
+ support `bash`
+ support `zsh`
- update documentation
+ update `README.rst`
+ update `examples/*.py`
+ remove all mention of old `choices` API
- misc CI framework updates
+ fix autogenerated changelog missing info
+ fix tags not triggering CI

1.0.5

- add `--version`
+ `use_scm_version` to auto-detect version via `setuptools-scm` if possible
- tidy package structure
- docs: update contributing guide
- CI: add `Comment Bot` action
+ support `/tag vM.m.p SHA` comments for releasing!

1.0.4

- re-fix `argparse` dependency for py<2.7 and 3.0<=py<3.2 (7, 6 <- 5)

Page 6 of 7

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.