Article 57YZM bash / zsh completion function in python / golang

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?latest?d=yIl2AUoC8zA latest?i=OYScszfO6MI:QTB-5P-KA_E:F7zBnMy latest?i=OYScszfO6MI:QTB-5P-KA_E:V_sGLiP latest?d=qj6IDK7rITs latest?i=OYScszfO6MI:QTB-5P-KA_E:gIN9vFwOYScszfO6MI
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments