Closed yermulnik closed 1 year ago
I'm afraid I can't be of much help directly; shell completion is a feature of click
, the CLI library. The docs for completion are here: https://click.palletsprojects.com/en/8.1.x/shell-completion/ let me know if you do or don't make progress!
@benkehoe Does this mean that _AWS_SSO_UTIL_COMPLETE=source_bash aws-sso-util
does produce non-empty output to you?
Aha: I missed updating the documentation. In click 8 (which aws-sso-util requires as of v4.31), the value changed from source_bash
to bash_source
(and similar for other shells) (no idea why). It was working for me using the click 8 docs, but the links in the README here and the example were using the click 7 version.
@benkehoe Worked like a charm! Thanks a lot for looking into this!
I'm looking into adding Bash completion locally. Per the https://github.com/benkehoe/aws-sso-util#quickstart the "main" command to produce shell completion code is
_AWS_SSO_UTIL_COMPLETE=source_bash aws-sso-util
, which I don't know why produces empty output for me — is this expected/known or did I manage to tangle my local setup somehow?aws-sso-util
is installed via Homebrew and OS is Ubuntu Jammy if it might be important:Appreciate any help.