completion/travis.sh in travis-1.5.4 vs completion/travis.sh in travis-1.5.5
- old
+ new
@@ -18,11 +18,11 @@
if type compdef 1>/dev/null 2>/dev/null; then
compdef _travis travis
_travis() { _travis_complete $((${#words} - 1)) "${words[2]}"; }
_travis_commands() { list=(accounts:"displays accounts and their subscription status" branches:"displays the most recent build for each branch" cancel:"cancels a job or build" console:"interactive shell" disable:"disables a project" enable:"enables a project" encrypt:"encrypts values for the .travis.yml" endpoint:"displays or changes the API endpoint" help:"helps you out when in dire need of information" history:"displays a projects build history" init:"generates a .travis.yml and enables the project" login:"authenticates against the API and stores the token" logs:"streams test logs" monitor:"live monitor for what's going on" open:"opens a build or job in the browser" pubkey:"prints out a repository's public key" raw:"makes an (authenticated) API call and prints out the result" restart:"restarts a build or job" setup:"sets up an addon or deploy target" show:"displays a build or job" status:"checks status of the latest build" sync:"triggers a new sync with GitHub" token:"outputs the secret API token" version:"outputs the client version" whatsup:"lists most recent builds" whoami:"outputs the current user") _describe -t common-commands 'common commands' list; }
- _travis_setup() { list=(cloudcontrol:"automatic deployment to cloudControl" cloudfoundry:"automatic deployment to Cloud Foundry" engineyard:"automatic deployment to Engine Yard" heroku:"automatic deployment to Heroku" nodejitsu:"automatic deployment to Nodejitsu" openshift:"automatic deployment to OpenShfit" rubygems:"automatic release to RubyGems" sauce_connect:"Sauce Connet addon for Sauce Labs integration") _describe -t common-commands 'common commands' list; }
+ _travis_setup() { list=(cloudcontrol:"automatic deployment to cloudControl" cloudfoundry:"automatic deployment to Cloud Foundry" engineyard:"automatic deployment to Engine Yard" heroku:"automatic deployment to Heroku" npm:"automatic release to NPM" nodejitsu:"automatic deployment to Nodejitsu" openshift:"automatic deployment to OpenShfit" pypi:"automatic deployment to PyPI" rubygems:"automatic release to RubyGems" sauce_connect:"Sauce Connet addon for Sauce Labs integration") _describe -t common-commands 'common commands' list; }
_travis_init() { list=(c:'initialize c project' clojure:'initialize clojure project' cpp:'initialize cpp project' erlang:'initialize erlang project' go:'initialize go project' groovy:'initialize groovy project' haskell:'initialize haskell project' java:'initialize java project' node_js:'initialize node_js project' objective-c:'initialize objective-c project' perl:'initialize perl project' php:'initialize php project' python:'initialize python project' ruby:'initialize ruby project' scala:'initialize scala project') _describe -t common-commands 'common commands' list; }
_travis_option() {
case "${words[2]}" in
accounts) _arguments -s -S "-h[Display help]" "--help[Display help]" "-i[be interactive and colorful]" "--interactive[be interactive and colorful]" "--no-interactive[be interactive and colorful]" "-E[don't rescue exceptions]" "--explode[don't rescue exceptions]" "--no-explode[don't rescue exceptions]" "--skip-version-check[don't check if travis client is up to date]" "-e[Travis API server to talk to]" "--api-endpoint[Travis API server to talk to]" "--pro[short-cut for --api-endpoint 'https://api.travis-ci.com/']" "--org[short-cut for --api-endpoint 'https://api.travis-ci.org/']" "--staging[talks to staging system]" "-t[access token to use]" "--token[access token to use]" "--debug[show API requests]" "--adapter[Faraday adapter to use for HTTP requests]" '*:file:_files' && return 0;;
branches) _arguments -s -S "-h[Display help]" "--help[Display help]" "-i[be interactive and colorful]" "--interactive[be interactive and colorful]" "--no-interactive[be interactive and colorful]" "-E[don't rescue exceptions]" "--explode[don't rescue exceptions]" "--no-explode[don't rescue exceptions]" "--skip-version-check[don't check if travis client is up to date]" "-e[Travis API server to talk to]" "--api-endpoint[Travis API server to talk to]" "--pro[short-cut for --api-endpoint 'https://api.travis-ci.com/']" "--org[short-cut for --api-endpoint 'https://api.travis-ci.org/']" "--staging[talks to staging system]" "-t[access token to use]" "--token[access token to use]" "--debug[show API requests]" "--adapter[Faraday adapter to use for HTTP requests]" "-r[repository to use (will try to detect from current git clone)]" "--repo[repository to use (will try to detect from current git clone)]" '*:file:_files' && return 0;;
@@ -54,11 +54,11 @@
}
elif type compctl 1>/dev/null 2>/dev/null; then
compctl -K _travis travis
_travis() { read -cA words && _travis_complete $((${#words} - 1)) "${words[2]}"; }
_travis_commands() { reply=("accounts" "branches" "cancel" "console" "disable" "enable" "encrypt" "endpoint" "help" "history" "init" "login" "logs" "monitor" "open" "pubkey" "raw" "restart" "setup" "show" "status" "sync" "token" "version" "whatsup" "whoami"); }
- _travis_setup() { reply=("cloudcontrol" "cloudfoundry" "engineyard" "heroku" "nodejitsu" "openshift" "rubygems" "sauce_connect"); }
+ _travis_setup() { reply=("cloudcontrol" "cloudfoundry" "engineyard" "heroku" "npm" "nodejitsu" "openshift" "pypi" "rubygems" "sauce_connect"); }
_travis_init() { reply=("c" "clojure" "cpp" "erlang" "go" "groovy" "haskell" "java" "node_js" "objective-c" "perl" "php" "python" "ruby" "scala"); }
_travis_option() {
case "${words[2]}" in
accounts) reply=("--help" "-h" "--interactive" "--no-interactive" "-i" "--explode" "--no-explode" "-E" "--skip-version-check" "--api-endpoint" "-e" "--pro" "--org" "--staging" "--token" "-t" "--debug" "--adapter");;
branches) reply=("--help" "-h" "--interactive" "--no-interactive" "-i" "--explode" "--no-explode" "-E" "--skip-version-check" "--api-endpoint" "-e" "--pro" "--org" "--staging" "--token" "-t" "--debug" "--adapter" "--repo" "-r");;
@@ -90,10 +90,10 @@
}
elif type complete 1>/dev/null 2>/dev/null; then
complete -F _travis travis
_travis() { _travis_complete "$COMP_CWORD" "${COMP_WORDS[1]}"; }
_travis_commands() { COMPREPLY=( $(compgen -W "accounts branches cancel console disable enable encrypt endpoint help history init login logs monitor open pubkey raw restart setup show status sync token version whatsup whoami" -- "${COMP_WORDS[COMP_CWORD]}") ); }
- _travis_setup() { COMPREPLY=( $(compgen -W "cloudcontrol cloudfoundry engineyard heroku nodejitsu openshift rubygems sauce_connect" -- "${COMP_WORDS[COMP_CWORD]}") ); }
+ _travis_setup() { COMPREPLY=( $(compgen -W "cloudcontrol cloudfoundry engineyard heroku npm nodejitsu openshift pypi rubygems sauce_connect" -- "${COMP_WORDS[COMP_CWORD]}") ); }
_travis_init() { COMPREPLY=( $(compgen -W "c clojure cpp erlang go groovy haskell java node_js objective-c perl php python ruby scala" -- "${COMP_WORDS[COMP_CWORD]}") ); }
_travis_option() {
local options
case "${COMP_WORDS[1]}" in
accounts) options="--help -h --interactive --no-interactive -i --explode --no-explode -E --skip-version-check --api-endpoint -e --pro --org --staging --token -t --debug --adapter";;