github.com/loggregator/cli@v6.33.1-0.20180224010324-82334f081791+incompatible/ci/installers/completion/cf (about) 1 # bash completion for Cloud Foundry CLI 2 3 _cf-cli() { 4 # All arguments except the first one 5 args=("${COMP_WORDS[@]:1:$COMP_CWORD}") 6 # Only split on newlines 7 local IFS=$'\n' 8 # Call completion (note that the first element of COMP_WORDS is 9 # the executable itself) 10 COMPREPLY=($(GO_FLAGS_COMPLETION=1 ${COMP_WORDS[0]} "${args[@]}")) 11 return 0 12 } 13 complete -F _cf-cli cf