travis 1.4.0 → 1.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +85 -4
- data/Rakefile +76 -2
- data/bin/travis +7 -0
- data/completion/extconf.rb +17 -0
- data/completion/travis.sh +1320 -0
- data/lib/travis/cli.rb +2 -0
- data/lib/travis/cli/accounts.rb +21 -0
- data/lib/travis/cli/api_command.rb +7 -0
- data/lib/travis/cli/command.rb +15 -0
- data/lib/travis/cli/encrypt.rb +1 -2
- data/lib/travis/cli/logs.rb +3 -7
- data/lib/travis/cli/monitor.rb +48 -0
- data/lib/travis/cli/restart.rb +1 -0
- data/lib/travis/cli/setup.rb +16 -2
- data/lib/travis/cli/token.rb +1 -1
- data/lib/travis/cli/whatsup.rb +1 -1
- data/lib/travis/client.rb +2 -0
- data/lib/travis/client/account.rb +5 -1
- data/lib/travis/client/artifact.rb +40 -4
- data/lib/travis/client/broadcast.rb +14 -0
- data/lib/travis/client/build.rb +4 -0
- data/lib/travis/client/entity.rb +2 -2
- data/lib/travis/client/job.rb +4 -0
- data/lib/travis/client/listener.rb +149 -0
- data/lib/travis/client/methods.rb +10 -0
- data/lib/travis/client/repository.rb +9 -1
- data/lib/travis/client/session.rb +5 -0
- data/lib/travis/client/user.rb +10 -1
- data/lib/travis/tools/safe_string.rb +20 -0
- data/lib/travis/version.rb +1 -1
- data/spec/cli/encrypt_spec.rb +5 -0
- data/spec/cli/restart_spec.rb +2 -2
- data/spec/client/broadcast_spec.rb +10 -0
- data/spec/support/fake_api.rb +7 -0
- data/travis.gemspec +27 -12
- metadata +61 -14
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 03c5dc1503f0463d6a5796598d0aa64e872fdb58
|
4
|
+
data.tar.gz: 02494adbd371242d2b34590855ad0ce0d11c10d8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 96a75b115553443178382b8168a207ae47dd91ddfbd9ec5aa46008a4e989501277f413173e545efdbe1ac27b2b1e3e81083efc2ceb44eea3119d965acd297323
|
7
|
+
data.tar.gz: 79457fc6db1fba431a41df0211505e5c8b195d946126f23a0b76ded02b40885dfc8d90eeb5be4b5cb945c794eec515f2be216b1e8819e256103f70bc44ce64f2
|
data/README.md
CHANGED
@@ -11,9 +11,11 @@ The [travis gem](https://rubygems.org/gems/travis) includes both a [command line
|
|
11
11
|
* [`help`](#help)
|
12
12
|
* [`version`](#version)
|
13
13
|
* [General API Commands](#general-api-commands)
|
14
|
+
* [`accounts`](#accounts)
|
14
15
|
* [`console`](#console)
|
15
16
|
* [`endpoint`](#endpoint)
|
16
17
|
* [`login`](#login)
|
18
|
+
* [`monitor`](#monitor)
|
17
19
|
* [`raw`](#raw)
|
18
20
|
* [`sync`](#sync)
|
19
21
|
* [`token`](#token)
|
@@ -45,6 +47,7 @@ The [travis gem](https://rubygems.org/gems/travis) includes both a [command line
|
|
45
47
|
* [Users](#users)
|
46
48
|
* [Commits](#commits)
|
47
49
|
* [Workers](#workers)
|
50
|
+
* [Listening for Events](#listening-for-events)
|
48
51
|
* [Dealing with Sessions](#dealing-with-sessions)
|
49
52
|
* [Using Namespaces](#using-namespaces)
|
50
53
|
* [Installation](#installation)
|
@@ -120,6 +123,17 @@ There are many libraries out there to do HTTP requests in Ruby. You can switch a
|
|
120
123
|
$ travis show --adapter excon
|
121
124
|
...
|
122
125
|
|
126
|
+
#### `accounts`
|
127
|
+
|
128
|
+
The accounts command can be used to list all the accounts you can set up repositories for.
|
129
|
+
|
130
|
+
$ travis accounts
|
131
|
+
rkh (Konstantin Haase): subscribed, 160 repositories
|
132
|
+
sinatra (Sinatra): subscribed, 9 repositories
|
133
|
+
rack (Official Rack repositories): subscribed, 3 repositories
|
134
|
+
travis-ci (Travis CI): subscribed, 57 repositories
|
135
|
+
...
|
136
|
+
|
123
137
|
#### `console`
|
124
138
|
|
125
139
|
Running `travis console` gives you an interactive Ruby session with all the [entities](#entities) imported into global namespace.
|
@@ -167,6 +181,33 @@ If you don't want it to send your credentials to GitHub, you can create a GitHub
|
|
167
181
|
|
168
182
|
A third option is for the really lazy: `--auto`. In this mode the client will try to find a GitHub token for you and just use that. This will only work if you have a [global GitHub token](https://help.github.com/articles/git-over-https-using-oauth-token) stored in your [.netrc](http://blogdown.io/c4d42f87-80dd-45d5-8927-4299cbdf261c/posts/574baa68-f663-4dcf-88b9-9d41310baf2f). If you haven't heard of this, it's worth looking into in general. Again: Travis CI will not store that token.
|
169
183
|
|
184
|
+
#### `monitor`
|
185
|
+
|
186
|
+
Usage: travis monitor [options]
|
187
|
+
-h, --help Display help
|
188
|
+
-i, --[no-]interactive be interactive and colorful
|
189
|
+
-E, --[no-]explode don't rescue exceptions
|
190
|
+
--skip-version-check don't check if travis client is up to date
|
191
|
+
-e, --api-endpoint URL Travis API server to talk to
|
192
|
+
--pro short-cut for --api-endpoint 'https://api.travis-ci.com/'
|
193
|
+
--org short-cut for --api-endpoint 'https://api.travis-ci.org/'
|
194
|
+
-t, --token [ACCESS_TOKEN] access token to use
|
195
|
+
--debug show API requests
|
196
|
+
-m, --my-repos Only monitor my own repositories
|
197
|
+
-r, --repo SLUG monitor given repository (can be used more than once)
|
198
|
+
|
199
|
+
With `monitor` you can watch a live stream of what's going on:
|
200
|
+
|
201
|
+
$ travis monitor
|
202
|
+
Monitoring travis-ci.org:
|
203
|
+
2013-08-05 01:22:40 questmaster/FATpRemote#45 started
|
204
|
+
2013-08-05 01:22:40 questmaster/FATpRemote#45.1 started
|
205
|
+
2013-08-05 01:22:41 grangier/python-goose#33.1 passed
|
206
|
+
2013-08-05 01:22:42 plataformatec/simple_form#666 passed
|
207
|
+
...
|
208
|
+
|
209
|
+
You can limit the repositories to monitor with `--my-repos` and `--repo SLUG`.
|
210
|
+
|
170
211
|
#### `raw`
|
171
212
|
|
172
213
|
This is really helpful both when working on this client and when exploring the [Travis API](https://api.travis-ci.org). It will simply fire a request against the API endpoint, parse the output and pretty print it. Keep in mind that the client takes care of authentication for you:
|
@@ -568,7 +609,7 @@ Helps you configure Travis addons.
|
|
568
609
|
-r, --repo SLUG repository to use (will try to detect from current git clone)
|
569
610
|
-f, --force override config section if it already exists
|
570
611
|
|
571
|
-
Available services: `heroku`, `nodejitsu`, `openshift` and `sauce_connect`.
|
612
|
+
Available services: `heroku`, `nodejitsu`, `openshift`, `rubygems` and `sauce_connect`.
|
572
613
|
|
573
614
|
Example:
|
574
615
|
|
@@ -924,6 +965,12 @@ If you plan to print our the body, be aware that it might contain malicious esca
|
|
924
965
|
puts job.log.colorized_body
|
925
966
|
````
|
926
967
|
|
968
|
+
You can stream a body for a job that is currently running by passing a block:
|
969
|
+
|
970
|
+
``` ruby
|
971
|
+
job.log.body { |chunk| print chunk }
|
972
|
+
```
|
973
|
+
|
927
974
|
#### Users
|
928
975
|
|
929
976
|
The only user you usually get access to is the currently authenticated one.
|
@@ -1025,6 +1072,26 @@ session.clear_cache # empty cached attributes
|
|
1025
1072
|
session.clear_cache! # empty identity map
|
1026
1073
|
```
|
1027
1074
|
|
1075
|
+
### Listening for Events
|
1076
|
+
|
1077
|
+
You can use the `listen` method to listen for events on repositories, builds or jobs:
|
1078
|
+
|
1079
|
+
``` ruby
|
1080
|
+
require 'travis'
|
1081
|
+
|
1082
|
+
rails = Travis::Repository.find("rails/rails")
|
1083
|
+
sinatra = Travis::Repository.find("sinatra/sinatra")
|
1084
|
+
|
1085
|
+
Travis.listen(rails, sinatra) do |stream|
|
1086
|
+
stream.on('build:started', 'build:finished') do |event|
|
1087
|
+
# ie "rails/rails just passed"
|
1088
|
+
puts "#{event.repository.slug} just #{event.build.state}"
|
1089
|
+
end
|
1090
|
+
end
|
1091
|
+
```
|
1092
|
+
|
1093
|
+
Current events are `build:created`, `build:started`, `build:finished`, `job:created`, `job:started`, `job:finished` and `job:log` (the last one only when subscribing to jobs explicitly). Not passing any arguments to `listen` will monitor the global stream.
|
1094
|
+
|
1028
1095
|
### Using Namespaces
|
1029
1096
|
|
1030
1097
|
`Travis` and `Travis::Pro` are just two different namespaces for two different Travis sessions. A namespace is a Module, exposing the higher level [session methods](#dealing-with-sessions). It also has a dummy constant for every [entity](#entities), wrapping `find_one` (aliased to `find`) and `find_many` (aliased to `find_all`) for you, so you don't have to keep track of the session or hand in the entity class. You can easily create your own namespace:
|
@@ -1060,12 +1127,12 @@ You can check your Ruby version by running `ruby -v`:
|
|
1060
1127
|
|
1061
1128
|
Then run:
|
1062
1129
|
|
1063
|
-
$ gem install travis -v 1.
|
1130
|
+
$ gem install travis -v 1.5.0 --no-rdoc --no-ri
|
1064
1131
|
|
1065
1132
|
Now make sure everything is working:
|
1066
1133
|
|
1067
|
-
$ travis
|
1068
|
-
1.
|
1134
|
+
$ travis version
|
1135
|
+
1.5.0
|
1069
1136
|
|
1070
1137
|
### Updating your Ruby
|
1071
1138
|
|
@@ -1112,6 +1179,20 @@ If you have the old `travis-cli` gem installed, you should `gem uninstall travis
|
|
1112
1179
|
|
1113
1180
|
## Version History
|
1114
1181
|
|
1182
|
+
**1.5.0** (August 7, 2013)
|
1183
|
+
|
1184
|
+
* Add `travis setup rubygems`.
|
1185
|
+
* Add `travis accounts`.
|
1186
|
+
* Add `travis monitor`.
|
1187
|
+
* Make `travis logs` stream.
|
1188
|
+
* Add Broadcast entity.
|
1189
|
+
* Add streaming body API.
|
1190
|
+
* Add event listener API.
|
1191
|
+
* Add simple plugin system (will load any ~/.travis/*/init.rb when running cli).
|
1192
|
+
* Implement shell completion for bash and zsh.
|
1193
|
+
* Be smarter about warnings when running `travis encrypt`.
|
1194
|
+
* Improve documentation.
|
1195
|
+
|
1115
1196
|
**1.4.0** (July 26, 2013)
|
1116
1197
|
|
1117
1198
|
* Add `travis init`
|
data/Rakefile
CHANGED
@@ -6,7 +6,7 @@ desc "run specs"
|
|
6
6
|
task(:spec) { ruby "-S rspec spec#{" -c" unless windows}" }
|
7
7
|
|
8
8
|
desc "generate gemspec, update readme"
|
9
|
-
task
|
9
|
+
task :update => :completion do
|
10
10
|
require 'travis/version'
|
11
11
|
content = File.read('travis.gemspec')
|
12
12
|
|
@@ -38,11 +38,85 @@ task 'update' do
|
|
38
38
|
File.open('travis.gemspec', 'w') { |f| f << content }
|
39
39
|
|
40
40
|
readme = File.read('README.md').b
|
41
|
-
readme.gsub! /^(\s+\$ travis
|
41
|
+
readme.gsub! /^(\s+\$ travis version\n\s+).*$/, "\\1#{Travis::VERSION}"
|
42
42
|
readme.gsub! /(gem install travis -v )\S+/, "\\1#{Travis::VERSION}"
|
43
43
|
File.write('README.md', readme)
|
44
44
|
end
|
45
45
|
|
46
|
+
task :completion do
|
47
|
+
require 'travis/cli'
|
48
|
+
commands = Travis::CLI.commands.sort_by { |c| c.command_name }
|
49
|
+
names = commands.map(&:command_name).join("\n")
|
50
|
+
options = commands.map do |command|
|
51
|
+
flags = command.new.parser.candidate("-").flat_map do |option|
|
52
|
+
next option unless option.start_with?('--[no-]')
|
53
|
+
[option.sub('[no-]', ''), option.sub('[no-]', 'no-')]
|
54
|
+
end.join("\n")
|
55
|
+
|
56
|
+
case command.command_name
|
57
|
+
when "setup"
|
58
|
+
completions = command.public_instance_methods.
|
59
|
+
select { |m| m.to_s.start_with? "setup_" }.
|
60
|
+
map { |m| m.to_s.sub('setup_', '') + "\n" }.join << flags
|
61
|
+
when "help"
|
62
|
+
completions = "#{names}\n#{flags}"
|
63
|
+
else
|
64
|
+
completions = flags
|
65
|
+
end
|
66
|
+
|
67
|
+
<<-SHELL
|
68
|
+
#{command.command_name})
|
69
|
+
completions="#{completions}"
|
70
|
+
;;
|
71
|
+
SHELL
|
72
|
+
end.join("\n")
|
73
|
+
|
74
|
+
zsh = <<-SHELL
|
75
|
+
_travis_complete() {
|
76
|
+
local words completions
|
77
|
+
read -cA words
|
78
|
+
if [ "${#words}" -eq 2 ]; then
|
79
|
+
completions="#{names}"
|
80
|
+
else
|
81
|
+
case "${words[2]}" in
|
82
|
+
#{options}
|
83
|
+
esac
|
84
|
+
fi
|
85
|
+
reply=("${(ps:\n:)completions}")
|
86
|
+
}
|
87
|
+
|
88
|
+
compctl -K _travis_complete travis
|
89
|
+
SHELL
|
90
|
+
|
91
|
+
bash = <<-SHELL
|
92
|
+
_travis_complete() {
|
93
|
+
COMPREPLY=()
|
94
|
+
local completions
|
95
|
+
if [ "$COMP_CWORD" -eq 1 ]; then
|
96
|
+
completions="#{names}"
|
97
|
+
else
|
98
|
+
case "${COMP_WORDS[1]}" in
|
99
|
+
#{options}
|
100
|
+
esac
|
101
|
+
fi
|
102
|
+
COMPREPLY=( $(compgen -W "$completions" -- "${COMP_WORDS[COMP_CWORD]}") )
|
103
|
+
}
|
104
|
+
|
105
|
+
complete -F _travis_complete travis
|
106
|
+
SHELL
|
107
|
+
|
108
|
+
File.write('completion/travis.sh', <<-SHELL.gsub(/^\s+/, ''))
|
109
|
+
# This file is generated by `rake completion`
|
110
|
+
if [ -n "$BASH_VERSION" ]; then
|
111
|
+
#{bash}
|
112
|
+
fi
|
113
|
+
|
114
|
+
if [ -n "$ZSH_VERSION" ]; then
|
115
|
+
#{zsh}
|
116
|
+
fi
|
117
|
+
SHELL
|
118
|
+
end
|
119
|
+
|
46
120
|
task 'travis.gemspec' => :update
|
47
121
|
task 'README.md' => :update
|
48
122
|
|
data/bin/travis
CHANGED
@@ -4,5 +4,12 @@ $LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
|
|
4
4
|
# :(
|
5
5
|
Encoding.default_external = Encoding::UTF_8 if defined? Encoding
|
6
6
|
|
7
|
+
# load travis library
|
7
8
|
require 'travis/cli'
|
9
|
+
|
10
|
+
# load plugins
|
11
|
+
config_path = ENV.fetch('TRAVIS_CONFIG_PATH') { File.expand_path('.travis', Dir.home) }
|
12
|
+
Dir.glob(File.expand_path('*/init.rb', config_path)) { |file| load(file) }
|
13
|
+
|
14
|
+
# and off we go then
|
8
15
|
Travis::CLI.run(ARGV)
|
@@ -0,0 +1,17 @@
|
|
1
|
+
config_path = ENV.fetch('TRAVIS_CONFIG_PATH') { File.expand_path('.travis', ENV['HOME']) }
|
2
|
+
|
3
|
+
require 'fileutils'
|
4
|
+
FileUtils.mkdir_p(config_path)
|
5
|
+
FileUtils.cp(File.expand_path('../travis.sh', __FILE__), config_path)
|
6
|
+
|
7
|
+
rcs = ['.zshrc', '.bashrc'].map { |f| File.expand_path(f, ENV['HOME']) }
|
8
|
+
source = "source " << File.expand_path('travis.sh', config_path)
|
9
|
+
|
10
|
+
rcs.each do |file|
|
11
|
+
next unless File.exist? file and File.writable? file
|
12
|
+
next if File.read(file).include? source
|
13
|
+
File.open(file, "a") { |f| f.puts("", "# added by travis gem", source) }
|
14
|
+
end
|
15
|
+
|
16
|
+
# fake Makefile
|
17
|
+
File.open('Makefile', 'w') { |f| f.puts 'all:', 'install:' }
|
@@ -0,0 +1,1320 @@
|
|
1
|
+
# This file is generated by `rake completion`
|
2
|
+
if [ -n "$BASH_VERSION" ]; then
|
3
|
+
_travis_complete() {
|
4
|
+
COMPREPLY=()
|
5
|
+
local completions
|
6
|
+
if [ "$COMP_CWORD" -eq 1 ]; then
|
7
|
+
completions="accounts
|
8
|
+
branches
|
9
|
+
console
|
10
|
+
disable
|
11
|
+
enable
|
12
|
+
encrypt
|
13
|
+
endpoint
|
14
|
+
help
|
15
|
+
history
|
16
|
+
init
|
17
|
+
login
|
18
|
+
logs
|
19
|
+
monitor
|
20
|
+
open
|
21
|
+
pubkey
|
22
|
+
raw
|
23
|
+
restart
|
24
|
+
setup
|
25
|
+
show
|
26
|
+
status
|
27
|
+
sync
|
28
|
+
token
|
29
|
+
version
|
30
|
+
whatsup
|
31
|
+
whoami"
|
32
|
+
else
|
33
|
+
case "${COMP_WORDS[1]}" in
|
34
|
+
accounts)
|
35
|
+
completions="--help
|
36
|
+
-h
|
37
|
+
--interactive
|
38
|
+
--no-interactive
|
39
|
+
-i
|
40
|
+
--explode
|
41
|
+
--no-explode
|
42
|
+
-E
|
43
|
+
--skip-version-check
|
44
|
+
--api-endpoint
|
45
|
+
-e
|
46
|
+
--pro
|
47
|
+
--org
|
48
|
+
--staging
|
49
|
+
--token
|
50
|
+
-t
|
51
|
+
--debug
|
52
|
+
--adapter"
|
53
|
+
;;
|
54
|
+
branches)
|
55
|
+
completions="--help
|
56
|
+
-h
|
57
|
+
--interactive
|
58
|
+
--no-interactive
|
59
|
+
-i
|
60
|
+
--explode
|
61
|
+
--no-explode
|
62
|
+
-E
|
63
|
+
--skip-version-check
|
64
|
+
--api-endpoint
|
65
|
+
-e
|
66
|
+
--pro
|
67
|
+
--org
|
68
|
+
--staging
|
69
|
+
--token
|
70
|
+
-t
|
71
|
+
--debug
|
72
|
+
--adapter
|
73
|
+
--repo
|
74
|
+
-r"
|
75
|
+
;;
|
76
|
+
console)
|
77
|
+
completions="--help
|
78
|
+
-h
|
79
|
+
--interactive
|
80
|
+
--no-interactive
|
81
|
+
-i
|
82
|
+
--explode
|
83
|
+
--no-explode
|
84
|
+
-E
|
85
|
+
--skip-version-check
|
86
|
+
--api-endpoint
|
87
|
+
-e
|
88
|
+
--pro
|
89
|
+
--org
|
90
|
+
--staging
|
91
|
+
--token
|
92
|
+
-t
|
93
|
+
--debug
|
94
|
+
--adapter"
|
95
|
+
;;
|
96
|
+
disable)
|
97
|
+
completions="--help
|
98
|
+
-h
|
99
|
+
--interactive
|
100
|
+
--no-interactive
|
101
|
+
-i
|
102
|
+
--explode
|
103
|
+
--no-explode
|
104
|
+
-E
|
105
|
+
--skip-version-check
|
106
|
+
--api-endpoint
|
107
|
+
-e
|
108
|
+
--pro
|
109
|
+
--org
|
110
|
+
--staging
|
111
|
+
--token
|
112
|
+
-t
|
113
|
+
--debug
|
114
|
+
--adapter
|
115
|
+
--repo
|
116
|
+
-r"
|
117
|
+
;;
|
118
|
+
enable)
|
119
|
+
completions="--help
|
120
|
+
-h
|
121
|
+
--interactive
|
122
|
+
--no-interactive
|
123
|
+
-i
|
124
|
+
--explode
|
125
|
+
--no-explode
|
126
|
+
-E
|
127
|
+
--skip-version-check
|
128
|
+
--api-endpoint
|
129
|
+
-e
|
130
|
+
--pro
|
131
|
+
--org
|
132
|
+
--staging
|
133
|
+
--token
|
134
|
+
-t
|
135
|
+
--debug
|
136
|
+
--adapter
|
137
|
+
--repo
|
138
|
+
-r
|
139
|
+
--skip-sync
|
140
|
+
-s"
|
141
|
+
;;
|
142
|
+
encrypt)
|
143
|
+
completions="--help
|
144
|
+
-h
|
145
|
+
--interactive
|
146
|
+
--no-interactive
|
147
|
+
-i
|
148
|
+
--explode
|
149
|
+
--no-explode
|
150
|
+
-E
|
151
|
+
--skip-version-check
|
152
|
+
--api-endpoint
|
153
|
+
-e
|
154
|
+
--pro
|
155
|
+
--org
|
156
|
+
--staging
|
157
|
+
--token
|
158
|
+
-t
|
159
|
+
--debug
|
160
|
+
--adapter
|
161
|
+
--repo
|
162
|
+
-r
|
163
|
+
--add
|
164
|
+
-a
|
165
|
+
--split
|
166
|
+
--no-split
|
167
|
+
-s
|
168
|
+
--append
|
169
|
+
-p
|
170
|
+
--override
|
171
|
+
-x"
|
172
|
+
;;
|
173
|
+
endpoint)
|
174
|
+
completions="--help
|
175
|
+
-h
|
176
|
+
--interactive
|
177
|
+
--no-interactive
|
178
|
+
-i
|
179
|
+
--explode
|
180
|
+
--no-explode
|
181
|
+
-E
|
182
|
+
--skip-version-check
|
183
|
+
--api-endpoint
|
184
|
+
-e
|
185
|
+
--pro
|
186
|
+
--org
|
187
|
+
--staging
|
188
|
+
--token
|
189
|
+
-t
|
190
|
+
--debug
|
191
|
+
--adapter"
|
192
|
+
;;
|
193
|
+
help)
|
194
|
+
completions="accounts
|
195
|
+
branches
|
196
|
+
console
|
197
|
+
disable
|
198
|
+
enable
|
199
|
+
encrypt
|
200
|
+
endpoint
|
201
|
+
help
|
202
|
+
history
|
203
|
+
init
|
204
|
+
login
|
205
|
+
logs
|
206
|
+
monitor
|
207
|
+
open
|
208
|
+
pubkey
|
209
|
+
raw
|
210
|
+
restart
|
211
|
+
setup
|
212
|
+
show
|
213
|
+
status
|
214
|
+
sync
|
215
|
+
token
|
216
|
+
version
|
217
|
+
whatsup
|
218
|
+
whoami
|
219
|
+
--help
|
220
|
+
-h
|
221
|
+
--interactive
|
222
|
+
--no-interactive
|
223
|
+
-i
|
224
|
+
--explode
|
225
|
+
--no-explode
|
226
|
+
-E
|
227
|
+
--skip-version-check"
|
228
|
+
;;
|
229
|
+
history)
|
230
|
+
completions="--help
|
231
|
+
-h
|
232
|
+
--interactive
|
233
|
+
--no-interactive
|
234
|
+
-i
|
235
|
+
--explode
|
236
|
+
--no-explode
|
237
|
+
-E
|
238
|
+
--skip-version-check
|
239
|
+
--api-endpoint
|
240
|
+
-e
|
241
|
+
--pro
|
242
|
+
--org
|
243
|
+
--staging
|
244
|
+
--token
|
245
|
+
-t
|
246
|
+
--debug
|
247
|
+
--adapter
|
248
|
+
--repo
|
249
|
+
-r
|
250
|
+
--after
|
251
|
+
-a
|
252
|
+
--pull-request
|
253
|
+
-p
|
254
|
+
--branch
|
255
|
+
-b
|
256
|
+
--limit
|
257
|
+
-l
|
258
|
+
--all
|
259
|
+
--no-all"
|
260
|
+
;;
|
261
|
+
init)
|
262
|
+
completions="--help
|
263
|
+
-h
|
264
|
+
--interactive
|
265
|
+
--no-interactive
|
266
|
+
-i
|
267
|
+
--explode
|
268
|
+
--no-explode
|
269
|
+
-E
|
270
|
+
--skip-version-check
|
271
|
+
--api-endpoint
|
272
|
+
-e
|
273
|
+
--pro
|
274
|
+
--org
|
275
|
+
--staging
|
276
|
+
--token
|
277
|
+
-t
|
278
|
+
--debug
|
279
|
+
--adapter
|
280
|
+
--repo
|
281
|
+
-r
|
282
|
+
--skip-sync
|
283
|
+
-s
|
284
|
+
--force
|
285
|
+
-f
|
286
|
+
--skip-enable
|
287
|
+
-k
|
288
|
+
--print-conf
|
289
|
+
-p
|
290
|
+
--script
|
291
|
+
--before-script
|
292
|
+
--after-script
|
293
|
+
--after-success
|
294
|
+
--install
|
295
|
+
--before-install
|
296
|
+
--compiler
|
297
|
+
--otp-release
|
298
|
+
--go
|
299
|
+
--jdk
|
300
|
+
--node-js
|
301
|
+
--perl
|
302
|
+
--php
|
303
|
+
--python
|
304
|
+
--rvm
|
305
|
+
--scala
|
306
|
+
--env
|
307
|
+
--gemfile"
|
308
|
+
;;
|
309
|
+
login)
|
310
|
+
completions="--help
|
311
|
+
-h
|
312
|
+
--interactive
|
313
|
+
--no-interactive
|
314
|
+
-i
|
315
|
+
--explode
|
316
|
+
--no-explode
|
317
|
+
-E
|
318
|
+
--skip-version-check
|
319
|
+
--api-endpoint
|
320
|
+
-e
|
321
|
+
--pro
|
322
|
+
--org
|
323
|
+
--staging
|
324
|
+
--token
|
325
|
+
-t
|
326
|
+
--debug
|
327
|
+
--adapter
|
328
|
+
--github-token
|
329
|
+
--auto"
|
330
|
+
;;
|
331
|
+
logs)
|
332
|
+
completions="--help
|
333
|
+
-h
|
334
|
+
--interactive
|
335
|
+
--no-interactive
|
336
|
+
-i
|
337
|
+
--explode
|
338
|
+
--no-explode
|
339
|
+
-E
|
340
|
+
--skip-version-check
|
341
|
+
--api-endpoint
|
342
|
+
-e
|
343
|
+
--pro
|
344
|
+
--org
|
345
|
+
--staging
|
346
|
+
--token
|
347
|
+
-t
|
348
|
+
--debug
|
349
|
+
--adapter
|
350
|
+
--repo
|
351
|
+
-r"
|
352
|
+
;;
|
353
|
+
monitor)
|
354
|
+
completions="--help
|
355
|
+
-h
|
356
|
+
--interactive
|
357
|
+
--no-interactive
|
358
|
+
-i
|
359
|
+
--explode
|
360
|
+
--no-explode
|
361
|
+
-E
|
362
|
+
--skip-version-check
|
363
|
+
--api-endpoint
|
364
|
+
-e
|
365
|
+
--pro
|
366
|
+
--org
|
367
|
+
--staging
|
368
|
+
--token
|
369
|
+
-t
|
370
|
+
--debug
|
371
|
+
--adapter
|
372
|
+
--my-repos
|
373
|
+
-m
|
374
|
+
--repo
|
375
|
+
-r"
|
376
|
+
;;
|
377
|
+
open)
|
378
|
+
completions="--help
|
379
|
+
-h
|
380
|
+
--interactive
|
381
|
+
--no-interactive
|
382
|
+
-i
|
383
|
+
--explode
|
384
|
+
--no-explode
|
385
|
+
-E
|
386
|
+
--skip-version-check
|
387
|
+
--api-endpoint
|
388
|
+
-e
|
389
|
+
--pro
|
390
|
+
--org
|
391
|
+
--staging
|
392
|
+
--token
|
393
|
+
-t
|
394
|
+
--debug
|
395
|
+
--adapter
|
396
|
+
--repo
|
397
|
+
-r
|
398
|
+
--github
|
399
|
+
-g
|
400
|
+
--print
|
401
|
+
-p"
|
402
|
+
;;
|
403
|
+
pubkey)
|
404
|
+
completions="--help
|
405
|
+
-h
|
406
|
+
--interactive
|
407
|
+
--no-interactive
|
408
|
+
-i
|
409
|
+
--explode
|
410
|
+
--no-explode
|
411
|
+
-E
|
412
|
+
--skip-version-check
|
413
|
+
--api-endpoint
|
414
|
+
-e
|
415
|
+
--pro
|
416
|
+
--org
|
417
|
+
--staging
|
418
|
+
--token
|
419
|
+
-t
|
420
|
+
--debug
|
421
|
+
--adapter
|
422
|
+
--repo
|
423
|
+
-r
|
424
|
+
--pem
|
425
|
+
--no-pem
|
426
|
+
-p"
|
427
|
+
;;
|
428
|
+
raw)
|
429
|
+
completions="--help
|
430
|
+
-h
|
431
|
+
--interactive
|
432
|
+
--no-interactive
|
433
|
+
-i
|
434
|
+
--explode
|
435
|
+
--no-explode
|
436
|
+
-E
|
437
|
+
--skip-version-check
|
438
|
+
--api-endpoint
|
439
|
+
-e
|
440
|
+
--pro
|
441
|
+
--org
|
442
|
+
--staging
|
443
|
+
--token
|
444
|
+
-t
|
445
|
+
--debug
|
446
|
+
--adapter
|
447
|
+
--json
|
448
|
+
--no-json"
|
449
|
+
;;
|
450
|
+
restart)
|
451
|
+
completions="--help
|
452
|
+
-h
|
453
|
+
--interactive
|
454
|
+
--no-interactive
|
455
|
+
-i
|
456
|
+
--explode
|
457
|
+
--no-explode
|
458
|
+
-E
|
459
|
+
--skip-version-check
|
460
|
+
--api-endpoint
|
461
|
+
-e
|
462
|
+
--pro
|
463
|
+
--org
|
464
|
+
--staging
|
465
|
+
--token
|
466
|
+
-t
|
467
|
+
--debug
|
468
|
+
--adapter
|
469
|
+
--repo
|
470
|
+
-r"
|
471
|
+
;;
|
472
|
+
setup)
|
473
|
+
completions="heroku
|
474
|
+
openshift
|
475
|
+
rubygems
|
476
|
+
nodejitsu
|
477
|
+
sauce_connect
|
478
|
+
sauce_labs
|
479
|
+
sauce
|
480
|
+
--help
|
481
|
+
-h
|
482
|
+
--interactive
|
483
|
+
--no-interactive
|
484
|
+
-i
|
485
|
+
--explode
|
486
|
+
--no-explode
|
487
|
+
-E
|
488
|
+
--skip-version-check
|
489
|
+
--api-endpoint
|
490
|
+
-e
|
491
|
+
--pro
|
492
|
+
--org
|
493
|
+
--staging
|
494
|
+
--token
|
495
|
+
-t
|
496
|
+
--debug
|
497
|
+
--adapter
|
498
|
+
--repo
|
499
|
+
-r
|
500
|
+
--force
|
501
|
+
-f"
|
502
|
+
;;
|
503
|
+
show)
|
504
|
+
completions="--help
|
505
|
+
-h
|
506
|
+
--interactive
|
507
|
+
--no-interactive
|
508
|
+
-i
|
509
|
+
--explode
|
510
|
+
--no-explode
|
511
|
+
-E
|
512
|
+
--skip-version-check
|
513
|
+
--api-endpoint
|
514
|
+
-e
|
515
|
+
--pro
|
516
|
+
--org
|
517
|
+
--staging
|
518
|
+
--token
|
519
|
+
-t
|
520
|
+
--debug
|
521
|
+
--adapter
|
522
|
+
--repo
|
523
|
+
-r"
|
524
|
+
;;
|
525
|
+
status)
|
526
|
+
completions="--help
|
527
|
+
-h
|
528
|
+
--interactive
|
529
|
+
--no-interactive
|
530
|
+
-i
|
531
|
+
--explode
|
532
|
+
--no-explode
|
533
|
+
-E
|
534
|
+
--skip-version-check
|
535
|
+
--api-endpoint
|
536
|
+
-e
|
537
|
+
--pro
|
538
|
+
--org
|
539
|
+
--staging
|
540
|
+
--token
|
541
|
+
-t
|
542
|
+
--debug
|
543
|
+
--adapter
|
544
|
+
--repo
|
545
|
+
-r
|
546
|
+
--exit-code
|
547
|
+
--no-exit-code
|
548
|
+
-x
|
549
|
+
--quiet
|
550
|
+
--no-quiet
|
551
|
+
-q
|
552
|
+
--fail-pending
|
553
|
+
--no-fail-pending
|
554
|
+
-p"
|
555
|
+
;;
|
556
|
+
sync)
|
557
|
+
completions="--help
|
558
|
+
-h
|
559
|
+
--interactive
|
560
|
+
--no-interactive
|
561
|
+
-i
|
562
|
+
--explode
|
563
|
+
--no-explode
|
564
|
+
-E
|
565
|
+
--skip-version-check
|
566
|
+
--api-endpoint
|
567
|
+
-e
|
568
|
+
--pro
|
569
|
+
--org
|
570
|
+
--staging
|
571
|
+
--token
|
572
|
+
-t
|
573
|
+
--debug
|
574
|
+
--adapter
|
575
|
+
--check
|
576
|
+
-c
|
577
|
+
--background
|
578
|
+
-b
|
579
|
+
--force
|
580
|
+
-f"
|
581
|
+
;;
|
582
|
+
token)
|
583
|
+
completions="--help
|
584
|
+
-h
|
585
|
+
--interactive
|
586
|
+
--no-interactive
|
587
|
+
-i
|
588
|
+
--explode
|
589
|
+
--no-explode
|
590
|
+
-E
|
591
|
+
--skip-version-check
|
592
|
+
--api-endpoint
|
593
|
+
-e
|
594
|
+
--pro
|
595
|
+
--org
|
596
|
+
--staging
|
597
|
+
--token
|
598
|
+
-t
|
599
|
+
--debug
|
600
|
+
--adapter"
|
601
|
+
;;
|
602
|
+
version)
|
603
|
+
completions="--help
|
604
|
+
-h
|
605
|
+
--interactive
|
606
|
+
--no-interactive
|
607
|
+
-i
|
608
|
+
--explode
|
609
|
+
--no-explode
|
610
|
+
-E
|
611
|
+
--skip-version-check"
|
612
|
+
;;
|
613
|
+
whatsup)
|
614
|
+
completions="--help
|
615
|
+
-h
|
616
|
+
--interactive
|
617
|
+
--no-interactive
|
618
|
+
-i
|
619
|
+
--explode
|
620
|
+
--no-explode
|
621
|
+
-E
|
622
|
+
--skip-version-check
|
623
|
+
--api-endpoint
|
624
|
+
-e
|
625
|
+
--pro
|
626
|
+
--org
|
627
|
+
--staging
|
628
|
+
--token
|
629
|
+
-t
|
630
|
+
--debug
|
631
|
+
--adapter
|
632
|
+
--my-repos
|
633
|
+
-m"
|
634
|
+
;;
|
635
|
+
whoami)
|
636
|
+
completions="--help
|
637
|
+
-h
|
638
|
+
--interactive
|
639
|
+
--no-interactive
|
640
|
+
-i
|
641
|
+
--explode
|
642
|
+
--no-explode
|
643
|
+
-E
|
644
|
+
--skip-version-check
|
645
|
+
--api-endpoint
|
646
|
+
-e
|
647
|
+
--pro
|
648
|
+
--org
|
649
|
+
--staging
|
650
|
+
--token
|
651
|
+
-t
|
652
|
+
--debug
|
653
|
+
--adapter"
|
654
|
+
;;
|
655
|
+
esac
|
656
|
+
fi
|
657
|
+
COMPREPLY=( $(compgen -W "$completions" -- "${COMP_WORDS[COMP_CWORD]}") )
|
658
|
+
}
|
659
|
+
complete -F _travis_complete travis
|
660
|
+
fi
|
661
|
+
if [ -n "$ZSH_VERSION" ]; then
|
662
|
+
_travis_complete() {
|
663
|
+
local words completions
|
664
|
+
read -cA words
|
665
|
+
if [ "${#words}" -eq 2 ]; then
|
666
|
+
completions="accounts
|
667
|
+
branches
|
668
|
+
console
|
669
|
+
disable
|
670
|
+
enable
|
671
|
+
encrypt
|
672
|
+
endpoint
|
673
|
+
help
|
674
|
+
history
|
675
|
+
init
|
676
|
+
login
|
677
|
+
logs
|
678
|
+
monitor
|
679
|
+
open
|
680
|
+
pubkey
|
681
|
+
raw
|
682
|
+
restart
|
683
|
+
setup
|
684
|
+
show
|
685
|
+
status
|
686
|
+
sync
|
687
|
+
token
|
688
|
+
version
|
689
|
+
whatsup
|
690
|
+
whoami"
|
691
|
+
else
|
692
|
+
case "${words[2]}" in
|
693
|
+
accounts)
|
694
|
+
completions="--help
|
695
|
+
-h
|
696
|
+
--interactive
|
697
|
+
--no-interactive
|
698
|
+
-i
|
699
|
+
--explode
|
700
|
+
--no-explode
|
701
|
+
-E
|
702
|
+
--skip-version-check
|
703
|
+
--api-endpoint
|
704
|
+
-e
|
705
|
+
--pro
|
706
|
+
--org
|
707
|
+
--staging
|
708
|
+
--token
|
709
|
+
-t
|
710
|
+
--debug
|
711
|
+
--adapter"
|
712
|
+
;;
|
713
|
+
branches)
|
714
|
+
completions="--help
|
715
|
+
-h
|
716
|
+
--interactive
|
717
|
+
--no-interactive
|
718
|
+
-i
|
719
|
+
--explode
|
720
|
+
--no-explode
|
721
|
+
-E
|
722
|
+
--skip-version-check
|
723
|
+
--api-endpoint
|
724
|
+
-e
|
725
|
+
--pro
|
726
|
+
--org
|
727
|
+
--staging
|
728
|
+
--token
|
729
|
+
-t
|
730
|
+
--debug
|
731
|
+
--adapter
|
732
|
+
--repo
|
733
|
+
-r"
|
734
|
+
;;
|
735
|
+
console)
|
736
|
+
completions="--help
|
737
|
+
-h
|
738
|
+
--interactive
|
739
|
+
--no-interactive
|
740
|
+
-i
|
741
|
+
--explode
|
742
|
+
--no-explode
|
743
|
+
-E
|
744
|
+
--skip-version-check
|
745
|
+
--api-endpoint
|
746
|
+
-e
|
747
|
+
--pro
|
748
|
+
--org
|
749
|
+
--staging
|
750
|
+
--token
|
751
|
+
-t
|
752
|
+
--debug
|
753
|
+
--adapter"
|
754
|
+
;;
|
755
|
+
disable)
|
756
|
+
completions="--help
|
757
|
+
-h
|
758
|
+
--interactive
|
759
|
+
--no-interactive
|
760
|
+
-i
|
761
|
+
--explode
|
762
|
+
--no-explode
|
763
|
+
-E
|
764
|
+
--skip-version-check
|
765
|
+
--api-endpoint
|
766
|
+
-e
|
767
|
+
--pro
|
768
|
+
--org
|
769
|
+
--staging
|
770
|
+
--token
|
771
|
+
-t
|
772
|
+
--debug
|
773
|
+
--adapter
|
774
|
+
--repo
|
775
|
+
-r"
|
776
|
+
;;
|
777
|
+
enable)
|
778
|
+
completions="--help
|
779
|
+
-h
|
780
|
+
--interactive
|
781
|
+
--no-interactive
|
782
|
+
-i
|
783
|
+
--explode
|
784
|
+
--no-explode
|
785
|
+
-E
|
786
|
+
--skip-version-check
|
787
|
+
--api-endpoint
|
788
|
+
-e
|
789
|
+
--pro
|
790
|
+
--org
|
791
|
+
--staging
|
792
|
+
--token
|
793
|
+
-t
|
794
|
+
--debug
|
795
|
+
--adapter
|
796
|
+
--repo
|
797
|
+
-r
|
798
|
+
--skip-sync
|
799
|
+
-s"
|
800
|
+
;;
|
801
|
+
encrypt)
|
802
|
+
completions="--help
|
803
|
+
-h
|
804
|
+
--interactive
|
805
|
+
--no-interactive
|
806
|
+
-i
|
807
|
+
--explode
|
808
|
+
--no-explode
|
809
|
+
-E
|
810
|
+
--skip-version-check
|
811
|
+
--api-endpoint
|
812
|
+
-e
|
813
|
+
--pro
|
814
|
+
--org
|
815
|
+
--staging
|
816
|
+
--token
|
817
|
+
-t
|
818
|
+
--debug
|
819
|
+
--adapter
|
820
|
+
--repo
|
821
|
+
-r
|
822
|
+
--add
|
823
|
+
-a
|
824
|
+
--split
|
825
|
+
--no-split
|
826
|
+
-s
|
827
|
+
--append
|
828
|
+
-p
|
829
|
+
--override
|
830
|
+
-x"
|
831
|
+
;;
|
832
|
+
endpoint)
|
833
|
+
completions="--help
|
834
|
+
-h
|
835
|
+
--interactive
|
836
|
+
--no-interactive
|
837
|
+
-i
|
838
|
+
--explode
|
839
|
+
--no-explode
|
840
|
+
-E
|
841
|
+
--skip-version-check
|
842
|
+
--api-endpoint
|
843
|
+
-e
|
844
|
+
--pro
|
845
|
+
--org
|
846
|
+
--staging
|
847
|
+
--token
|
848
|
+
-t
|
849
|
+
--debug
|
850
|
+
--adapter"
|
851
|
+
;;
|
852
|
+
help)
|
853
|
+
completions="accounts
|
854
|
+
branches
|
855
|
+
console
|
856
|
+
disable
|
857
|
+
enable
|
858
|
+
encrypt
|
859
|
+
endpoint
|
860
|
+
help
|
861
|
+
history
|
862
|
+
init
|
863
|
+
login
|
864
|
+
logs
|
865
|
+
monitor
|
866
|
+
open
|
867
|
+
pubkey
|
868
|
+
raw
|
869
|
+
restart
|
870
|
+
setup
|
871
|
+
show
|
872
|
+
status
|
873
|
+
sync
|
874
|
+
token
|
875
|
+
version
|
876
|
+
whatsup
|
877
|
+
whoami
|
878
|
+
--help
|
879
|
+
-h
|
880
|
+
--interactive
|
881
|
+
--no-interactive
|
882
|
+
-i
|
883
|
+
--explode
|
884
|
+
--no-explode
|
885
|
+
-E
|
886
|
+
--skip-version-check"
|
887
|
+
;;
|
888
|
+
history)
|
889
|
+
completions="--help
|
890
|
+
-h
|
891
|
+
--interactive
|
892
|
+
--no-interactive
|
893
|
+
-i
|
894
|
+
--explode
|
895
|
+
--no-explode
|
896
|
+
-E
|
897
|
+
--skip-version-check
|
898
|
+
--api-endpoint
|
899
|
+
-e
|
900
|
+
--pro
|
901
|
+
--org
|
902
|
+
--staging
|
903
|
+
--token
|
904
|
+
-t
|
905
|
+
--debug
|
906
|
+
--adapter
|
907
|
+
--repo
|
908
|
+
-r
|
909
|
+
--after
|
910
|
+
-a
|
911
|
+
--pull-request
|
912
|
+
-p
|
913
|
+
--branch
|
914
|
+
-b
|
915
|
+
--limit
|
916
|
+
-l
|
917
|
+
--all
|
918
|
+
--no-all"
|
919
|
+
;;
|
920
|
+
init)
|
921
|
+
completions="--help
|
922
|
+
-h
|
923
|
+
--interactive
|
924
|
+
--no-interactive
|
925
|
+
-i
|
926
|
+
--explode
|
927
|
+
--no-explode
|
928
|
+
-E
|
929
|
+
--skip-version-check
|
930
|
+
--api-endpoint
|
931
|
+
-e
|
932
|
+
--pro
|
933
|
+
--org
|
934
|
+
--staging
|
935
|
+
--token
|
936
|
+
-t
|
937
|
+
--debug
|
938
|
+
--adapter
|
939
|
+
--repo
|
940
|
+
-r
|
941
|
+
--skip-sync
|
942
|
+
-s
|
943
|
+
--force
|
944
|
+
-f
|
945
|
+
--skip-enable
|
946
|
+
-k
|
947
|
+
--print-conf
|
948
|
+
-p
|
949
|
+
--script
|
950
|
+
--before-script
|
951
|
+
--after-script
|
952
|
+
--after-success
|
953
|
+
--install
|
954
|
+
--before-install
|
955
|
+
--compiler
|
956
|
+
--otp-release
|
957
|
+
--go
|
958
|
+
--jdk
|
959
|
+
--node-js
|
960
|
+
--perl
|
961
|
+
--php
|
962
|
+
--python
|
963
|
+
--rvm
|
964
|
+
--scala
|
965
|
+
--env
|
966
|
+
--gemfile"
|
967
|
+
;;
|
968
|
+
login)
|
969
|
+
completions="--help
|
970
|
+
-h
|
971
|
+
--interactive
|
972
|
+
--no-interactive
|
973
|
+
-i
|
974
|
+
--explode
|
975
|
+
--no-explode
|
976
|
+
-E
|
977
|
+
--skip-version-check
|
978
|
+
--api-endpoint
|
979
|
+
-e
|
980
|
+
--pro
|
981
|
+
--org
|
982
|
+
--staging
|
983
|
+
--token
|
984
|
+
-t
|
985
|
+
--debug
|
986
|
+
--adapter
|
987
|
+
--github-token
|
988
|
+
--auto"
|
989
|
+
;;
|
990
|
+
logs)
|
991
|
+
completions="--help
|
992
|
+
-h
|
993
|
+
--interactive
|
994
|
+
--no-interactive
|
995
|
+
-i
|
996
|
+
--explode
|
997
|
+
--no-explode
|
998
|
+
-E
|
999
|
+
--skip-version-check
|
1000
|
+
--api-endpoint
|
1001
|
+
-e
|
1002
|
+
--pro
|
1003
|
+
--org
|
1004
|
+
--staging
|
1005
|
+
--token
|
1006
|
+
-t
|
1007
|
+
--debug
|
1008
|
+
--adapter
|
1009
|
+
--repo
|
1010
|
+
-r"
|
1011
|
+
;;
|
1012
|
+
monitor)
|
1013
|
+
completions="--help
|
1014
|
+
-h
|
1015
|
+
--interactive
|
1016
|
+
--no-interactive
|
1017
|
+
-i
|
1018
|
+
--explode
|
1019
|
+
--no-explode
|
1020
|
+
-E
|
1021
|
+
--skip-version-check
|
1022
|
+
--api-endpoint
|
1023
|
+
-e
|
1024
|
+
--pro
|
1025
|
+
--org
|
1026
|
+
--staging
|
1027
|
+
--token
|
1028
|
+
-t
|
1029
|
+
--debug
|
1030
|
+
--adapter
|
1031
|
+
--my-repos
|
1032
|
+
-m
|
1033
|
+
--repo
|
1034
|
+
-r"
|
1035
|
+
;;
|
1036
|
+
open)
|
1037
|
+
completions="--help
|
1038
|
+
-h
|
1039
|
+
--interactive
|
1040
|
+
--no-interactive
|
1041
|
+
-i
|
1042
|
+
--explode
|
1043
|
+
--no-explode
|
1044
|
+
-E
|
1045
|
+
--skip-version-check
|
1046
|
+
--api-endpoint
|
1047
|
+
-e
|
1048
|
+
--pro
|
1049
|
+
--org
|
1050
|
+
--staging
|
1051
|
+
--token
|
1052
|
+
-t
|
1053
|
+
--debug
|
1054
|
+
--adapter
|
1055
|
+
--repo
|
1056
|
+
-r
|
1057
|
+
--github
|
1058
|
+
-g
|
1059
|
+
--print
|
1060
|
+
-p"
|
1061
|
+
;;
|
1062
|
+
pubkey)
|
1063
|
+
completions="--help
|
1064
|
+
-h
|
1065
|
+
--interactive
|
1066
|
+
--no-interactive
|
1067
|
+
-i
|
1068
|
+
--explode
|
1069
|
+
--no-explode
|
1070
|
+
-E
|
1071
|
+
--skip-version-check
|
1072
|
+
--api-endpoint
|
1073
|
+
-e
|
1074
|
+
--pro
|
1075
|
+
--org
|
1076
|
+
--staging
|
1077
|
+
--token
|
1078
|
+
-t
|
1079
|
+
--debug
|
1080
|
+
--adapter
|
1081
|
+
--repo
|
1082
|
+
-r
|
1083
|
+
--pem
|
1084
|
+
--no-pem
|
1085
|
+
-p"
|
1086
|
+
;;
|
1087
|
+
raw)
|
1088
|
+
completions="--help
|
1089
|
+
-h
|
1090
|
+
--interactive
|
1091
|
+
--no-interactive
|
1092
|
+
-i
|
1093
|
+
--explode
|
1094
|
+
--no-explode
|
1095
|
+
-E
|
1096
|
+
--skip-version-check
|
1097
|
+
--api-endpoint
|
1098
|
+
-e
|
1099
|
+
--pro
|
1100
|
+
--org
|
1101
|
+
--staging
|
1102
|
+
--token
|
1103
|
+
-t
|
1104
|
+
--debug
|
1105
|
+
--adapter
|
1106
|
+
--json
|
1107
|
+
--no-json"
|
1108
|
+
;;
|
1109
|
+
restart)
|
1110
|
+
completions="--help
|
1111
|
+
-h
|
1112
|
+
--interactive
|
1113
|
+
--no-interactive
|
1114
|
+
-i
|
1115
|
+
--explode
|
1116
|
+
--no-explode
|
1117
|
+
-E
|
1118
|
+
--skip-version-check
|
1119
|
+
--api-endpoint
|
1120
|
+
-e
|
1121
|
+
--pro
|
1122
|
+
--org
|
1123
|
+
--staging
|
1124
|
+
--token
|
1125
|
+
-t
|
1126
|
+
--debug
|
1127
|
+
--adapter
|
1128
|
+
--repo
|
1129
|
+
-r"
|
1130
|
+
;;
|
1131
|
+
setup)
|
1132
|
+
completions="heroku
|
1133
|
+
openshift
|
1134
|
+
rubygems
|
1135
|
+
nodejitsu
|
1136
|
+
sauce_connect
|
1137
|
+
sauce_labs
|
1138
|
+
sauce
|
1139
|
+
--help
|
1140
|
+
-h
|
1141
|
+
--interactive
|
1142
|
+
--no-interactive
|
1143
|
+
-i
|
1144
|
+
--explode
|
1145
|
+
--no-explode
|
1146
|
+
-E
|
1147
|
+
--skip-version-check
|
1148
|
+
--api-endpoint
|
1149
|
+
-e
|
1150
|
+
--pro
|
1151
|
+
--org
|
1152
|
+
--staging
|
1153
|
+
--token
|
1154
|
+
-t
|
1155
|
+
--debug
|
1156
|
+
--adapter
|
1157
|
+
--repo
|
1158
|
+
-r
|
1159
|
+
--force
|
1160
|
+
-f"
|
1161
|
+
;;
|
1162
|
+
show)
|
1163
|
+
completions="--help
|
1164
|
+
-h
|
1165
|
+
--interactive
|
1166
|
+
--no-interactive
|
1167
|
+
-i
|
1168
|
+
--explode
|
1169
|
+
--no-explode
|
1170
|
+
-E
|
1171
|
+
--skip-version-check
|
1172
|
+
--api-endpoint
|
1173
|
+
-e
|
1174
|
+
--pro
|
1175
|
+
--org
|
1176
|
+
--staging
|
1177
|
+
--token
|
1178
|
+
-t
|
1179
|
+
--debug
|
1180
|
+
--adapter
|
1181
|
+
--repo
|
1182
|
+
-r"
|
1183
|
+
;;
|
1184
|
+
status)
|
1185
|
+
completions="--help
|
1186
|
+
-h
|
1187
|
+
--interactive
|
1188
|
+
--no-interactive
|
1189
|
+
-i
|
1190
|
+
--explode
|
1191
|
+
--no-explode
|
1192
|
+
-E
|
1193
|
+
--skip-version-check
|
1194
|
+
--api-endpoint
|
1195
|
+
-e
|
1196
|
+
--pro
|
1197
|
+
--org
|
1198
|
+
--staging
|
1199
|
+
--token
|
1200
|
+
-t
|
1201
|
+
--debug
|
1202
|
+
--adapter
|
1203
|
+
--repo
|
1204
|
+
-r
|
1205
|
+
--exit-code
|
1206
|
+
--no-exit-code
|
1207
|
+
-x
|
1208
|
+
--quiet
|
1209
|
+
--no-quiet
|
1210
|
+
-q
|
1211
|
+
--fail-pending
|
1212
|
+
--no-fail-pending
|
1213
|
+
-p"
|
1214
|
+
;;
|
1215
|
+
sync)
|
1216
|
+
completions="--help
|
1217
|
+
-h
|
1218
|
+
--interactive
|
1219
|
+
--no-interactive
|
1220
|
+
-i
|
1221
|
+
--explode
|
1222
|
+
--no-explode
|
1223
|
+
-E
|
1224
|
+
--skip-version-check
|
1225
|
+
--api-endpoint
|
1226
|
+
-e
|
1227
|
+
--pro
|
1228
|
+
--org
|
1229
|
+
--staging
|
1230
|
+
--token
|
1231
|
+
-t
|
1232
|
+
--debug
|
1233
|
+
--adapter
|
1234
|
+
--check
|
1235
|
+
-c
|
1236
|
+
--background
|
1237
|
+
-b
|
1238
|
+
--force
|
1239
|
+
-f"
|
1240
|
+
;;
|
1241
|
+
token)
|
1242
|
+
completions="--help
|
1243
|
+
-h
|
1244
|
+
--interactive
|
1245
|
+
--no-interactive
|
1246
|
+
-i
|
1247
|
+
--explode
|
1248
|
+
--no-explode
|
1249
|
+
-E
|
1250
|
+
--skip-version-check
|
1251
|
+
--api-endpoint
|
1252
|
+
-e
|
1253
|
+
--pro
|
1254
|
+
--org
|
1255
|
+
--staging
|
1256
|
+
--token
|
1257
|
+
-t
|
1258
|
+
--debug
|
1259
|
+
--adapter"
|
1260
|
+
;;
|
1261
|
+
version)
|
1262
|
+
completions="--help
|
1263
|
+
-h
|
1264
|
+
--interactive
|
1265
|
+
--no-interactive
|
1266
|
+
-i
|
1267
|
+
--explode
|
1268
|
+
--no-explode
|
1269
|
+
-E
|
1270
|
+
--skip-version-check"
|
1271
|
+
;;
|
1272
|
+
whatsup)
|
1273
|
+
completions="--help
|
1274
|
+
-h
|
1275
|
+
--interactive
|
1276
|
+
--no-interactive
|
1277
|
+
-i
|
1278
|
+
--explode
|
1279
|
+
--no-explode
|
1280
|
+
-E
|
1281
|
+
--skip-version-check
|
1282
|
+
--api-endpoint
|
1283
|
+
-e
|
1284
|
+
--pro
|
1285
|
+
--org
|
1286
|
+
--staging
|
1287
|
+
--token
|
1288
|
+
-t
|
1289
|
+
--debug
|
1290
|
+
--adapter
|
1291
|
+
--my-repos
|
1292
|
+
-m"
|
1293
|
+
;;
|
1294
|
+
whoami)
|
1295
|
+
completions="--help
|
1296
|
+
-h
|
1297
|
+
--interactive
|
1298
|
+
--no-interactive
|
1299
|
+
-i
|
1300
|
+
--explode
|
1301
|
+
--no-explode
|
1302
|
+
-E
|
1303
|
+
--skip-version-check
|
1304
|
+
--api-endpoint
|
1305
|
+
-e
|
1306
|
+
--pro
|
1307
|
+
--org
|
1308
|
+
--staging
|
1309
|
+
--token
|
1310
|
+
-t
|
1311
|
+
--debug
|
1312
|
+
--adapter"
|
1313
|
+
;;
|
1314
|
+
esac
|
1315
|
+
fi
|
1316
|
+
reply=("${(ps:
|
1317
|
+
:)completions}")
|
1318
|
+
}
|
1319
|
+
compctl -K _travis_complete travis
|
1320
|
+
fi
|