3 ms·
Can it generate bash completion scripts? eg: $ . <(fab --print-completion-script zsh) to enable autocomplete for fab in zsh shell.
by d0mine 3y ago
Can it generate bash completion scripts? eg:
$ . <(fab --print-completion-script zsh)
to enable autocomplete for fab in zsh shell.
- codethief 3y agoNo idea about Trogon but Typer[0], which is based on the Click library that Trogon leverages, does provide autocompletion. [0]: https://typer.tiangolo.com/ https://typer.tiangolo.com/
- simonw 3y agoThis inspired be to look into how Click handles this without Typer, and it turns out it's a supported feature there too: https://click.palletsprojects.com/en/8.1.x/shell-completion/ https://click.palletsprojects.com/en/8.1.x/shell-completion/ I got it working for my sqlite-utils tool in zsh by running this: eval "$(_SQLITE_UTILS_COMPLETE=zsh_source sqlite-utils)"