Code Review
/
src
/
xds
/
xds-cli.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
history
|
raw
|
HEAD
Added bash completion support.
[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