cli icon indicating copy to clipboard operation
cli copied to clipboard

generate shell completion from specs

Open millettjon opened this issue 3 years ago • 2 comments

I'm curious how hard this would be. Maybe have a special flag --complete that takes a partial command line and returns the list of completions to the shell.

millettjon avatar Jun 24 '22 16:06 millettjon

Feel free to experiment. I'm open to this, but I think completions are shell (bash, zsh, fish, etc) specific?

borkdude avatar Jun 24 '22 19:06 borkdude

Cool.

zsh apparently has a bash compatibility mode. I'm not sure about fish.

My inspiration for this is the compleat tool which does something similar and works with bash, zsh, and fish.

millettjon avatar Jun 26 '22 03:06 millettjon