restic/Godeps/_workspace/src/github.com/jessevdk/go-flags/examples/bash-completion

10 lines
185 B
Plaintext

_examples() {
args=("${COMP_WORDS[@]:1:$COMP_CWORD}")
local IFS=$'\n'
COMPREPLY=($(GO_FLAGS_COMPLETION=1 ${COMP_WORDS[0]} "${args[@]}"))
return 1
}
complete -F _examples examples