Code Review
/
src
/
xds
/
xds-cli.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
97781807c9215453aa632468d39440ed9df7c22e
[src/xds/xds-cli.git]
/
conf.d
/
etc
/
bash_completion.d
/
xds-cli
1
#! /bin/bash
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
complete -F _cli_bash_autocomplete xds-cli