cli
cli copied to clipboard
generate shell completion from specs
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.
Feel free to experiment. I'm open to this, but I think completions are shell (bash, zsh, fish, etc) specific?
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.