commando icon indicating copy to clipboard operation
commando copied to clipboard

How to write shell completion function in Go

Open blueray453 opened this issue 5 years ago • 3 comments

For example the following is a zsh completion function for command foo:

#compdef _foo foo
compadd first second third fourth

So, if we type foo <tab> in the zsh terminal, it suggests first second third fourth.

How can I do this using commando?

blueray453 avatar Sep 09 '20 19:09 blueray453

@blueray453 This is a very small library. There is no functionality such as this at the moment.

thatisuday avatar Sep 10 '20 10:09 thatisuday

Thanks @thatisuday. Should I close this issue or keep it open?

blueray453 avatar Sep 10 '20 16:09 blueray453

@blueray453 Planning to implement this in V2 of the library. So keeping it open.

thatisuday avatar Sep 12 '20 19:09 thatisuday