Open viraptor opened 1 year ago
Can you provide an example of another command which calls another command in this manner and supports auto-completion?
sudo
does it for example. I believe it's done here https://github.com/scop/bash-completion/blob/master/completions/sudo#L17 (not 100% sure though, I'm not great with bash completions)
I ended up writing a custom zsh completion after all - feel free to reuse:
The magic part here is the
case $state in
(cmd)
_normal -P
Output of
aws-sso version
:Describe the bug: When using command completion, the state doesn't "reset" after
exec ... --
To Reproduce:
aws-sso exec -p <TAB>
- I get profiles completionaws-sso exec -p some-profile -- aws <TAB>
- no completion availableExpected behavior:
exec ... --
should go back to normal completion. I expect:aws-sso exec -p some-profile -- aws <TAB>
to show me the awscli options.Desktop (please complete the following information):