Disable completion (not working well)
[src/xds/xds-cli.git] / conf.d / etc / bash_completion.d / xds-cli
1 # xds-cli bash completion script
2
3 _cli_bash_autocomplete() {
4      local cur opts base
5      COMPREPLY=()
6      cur="${COMP_WORDS[COMP_CWORD]}"
7      opts=$( ${COMP_WORDS[@]:0:$COMP_CWORD} --generate-bash-completion )
8      COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
9      return 0
10  }
11
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