bash / zsh completion function in python / golang
by blueray from LinuxQuestions.org on (#57YZM)
For example the following is a zsh completion function for command foo:
Code:#compdef _foo foo
compadd first second third fourthSo, if we type foo <tab> in the zsh terminal, it suggests first second third fourth.
I think I found few projects which help us write shell completion functions in python.
click.palletsprojects.com/en/7.x/bashcomplete
github.com/dan1994/pyzshcomplete
github.com/kislyuk/argcomplete
github.com/CarvellScott/completion_utils
I could find one project which might help us write shell completion functions in golang.
github.com/posener/complete
What do you suggest I use?


Code:#compdef _foo foo
compadd first second third fourthSo, if we type foo <tab> in the zsh terminal, it suggests first second third fourth.
I think I found few projects which help us write shell completion functions in python.
click.palletsprojects.com/en/7.x/bashcomplete
github.com/dan1994/pyzshcomplete
github.com/kislyuk/argcomplete
github.com/CarvellScott/completion_utils
I could find one project which might help us write shell completion functions in golang.
github.com/posener/complete
What do you suggest I use?