1 # xds-cli bash completion script
3 _cli_bash_autocomplete() {
6 cur="${COMP_WORDS[COMP_CWORD]}"
7 opts=$( ${COMP_WORDS[@]:0:$COMP_CWORD} --generate-bash-completion )
8 COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
12 # FIXME: Disable completion for now, because it's not working with options
13 # (eg. --label) and prevents to complete local path
14 # (IOW current function only completes command and sub-commands)
15 # complete -F _cli_bash_autocomplete xds-cli