github.com/cloudfoundry-attic/cli-with-i18n@v6.32.1-0.20171002233121-7401370d3b85+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