github.com/franc20/ayesa_sap@v7.0.0-beta.28.0.20200124003224-302d4d52fa6c+incompatible/ci/installers/completion/cf7 (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 cf7