Document shell completion set up
Hi,
Would be nice if silkaj registered with bash to offer TAB-completion of its various command-line options and arguments.
This seems helpful: https://stackoverflow.com/questions/52282173/extending-bash-completion-with-python-click
- Show closed items
Activity
-
Newest first Oldest first
-
Show all activity Show comments only Show history only
- Moul added CLI enhancement labels
added CLI enhancement labels
- Moul changed title from lacks bash-completion to Bash and Zsh completion
changed title from lacks bash-completion to Bash and Zsh completion
Ok, it’s quite easy to do with click.
I created two scripts which should be sourced: one for BASH and one for ZSH.
The autocompletion wasn’t working with ZSH, I found this trick to make it work.
- Moul changed title from Bash and Zsh completion to Shell completion
changed title from Bash and Zsh completion to Shell completion
- Moul mentioned in issue #137 (closed)
mentioned in issue #137 (closed)
As I understand, Debian package is generating it automatically at packaging step.
Is it interesting to keep the auto generated files in Silkaj repository?
For users installing from
pip/PyPI
, a documentation would be much appreciable.It could also be interesting for the packaging for other distributions.
https://github.com/click-contrib/click-completion has many shell support: bash, zsh, fish and powershell:
-
Install
click-completion
andpsutil
for:-
pip
:setup.py
-
Install for
pipenv
as production dependency
-
- Document installation process
- Document this step for packagers
-
Create
install
command- Useless command on Distribution package? How can we get rid of it? By not creating this command. Import this command from other file thanks to Click.
Edited by Moul-
Install
- Moul added Documentation Install labels
added Documentation Install labels
Click v8.0 § Redesign the shell completion system now includes shell completion. I missed this information.
- Add documentation to Silkaj installation doc.
Edited by Moul- Moul changed title from Shell completion to Document shell completion set up
changed title from Shell completion to Document shell completion set up
- Moul mentioned in merge request !271 (merged)
mentioned in merge request !271 (merged)
- Moul closed with merge request !271 (merged)
closed with merge request !271 (merged)