shtab
shtab copied to clipboard
↔️ Automagic shell tab completion for Python CLI applications
and as it is invoked via pre-commit, that's quite annoying and blocking all commits because flake8 crashes.
Even with AI help, it is somehow painful to write completion code, e.g. for CLI option values - especially if their spec/type is non-trivial. Guess shtab's audience is primarily python...
On top of #174. Closes #174. Closes #134. - Fixes subcommands and nested commands to work properly, limited upto 3 levels. (eg: flags/subcommands beyound `rustup toolchain help install` won't be...
Maybe it would be a good idea to split that: - separate python code files, 1 per shell (currently: bash, zsh, tcsh) - common code used by multiple shells either...