github.com/ablease/cli@v6.37.1-0.20180613014814-3adbb7d7fb19+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