travis 1.5.3 → 1.5.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +27 -2
- data/Rakefile +4 -69
- data/completion/travis.sh +126 -1375
- data/completion/travis.sh.erb +60 -0
- data/lib/travis/cli.rb +0 -3
- data/lib/travis/cli/accounts.rb +4 -2
- data/lib/travis/cli/api_command.rb +19 -1
- data/lib/travis/cli/command.rb +4 -4
- data/lib/travis/cli/endpoint.rb +13 -1
- data/lib/travis/cli/init.rb +26 -2
- data/lib/travis/cli/login.rb +24 -12
- data/lib/travis/cli/monitor.rb +25 -2
- data/lib/travis/cli/repo_command.rb +4 -4
- data/lib/travis/cli/setup.rb +27 -122
- data/lib/travis/cli/setup/cloud_control.rb +21 -0
- data/lib/travis/cli/setup/cloud_foundry.rb +23 -0
- data/lib/travis/cli/setup/engine_yard.rb +24 -0
- data/lib/travis/cli/setup/heroku.rb +20 -0
- data/lib/travis/cli/setup/nodejitsu.rb +27 -0
- data/lib/travis/cli/setup/open_shift.rb +20 -0
- data/lib/travis/cli/setup/ruby_gems.rb +25 -0
- data/lib/travis/cli/setup/sauce_connect.rb +21 -0
- data/lib/travis/cli/setup/service.rb +73 -0
- data/lib/travis/client/repository.rb +1 -1
- data/lib/travis/client/session.rb +27 -5
- data/lib/travis/tools/notification.rb +69 -0
- data/lib/travis/tools/system.rb +38 -0
- data/lib/travis/version.rb +1 -1
- data/spec/cli/endpoint_spec.rb +5 -0
- data/spec/cli/init_spec.rb +21 -19
- data/spec/client/repository_spec.rb +1 -0
- data/spec/client/session_spec.rb +16 -0
- data/spec/support/fake_api.rb +2 -1
- data/travis.gemspec +28 -14
- metadata +46 -19
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a6ad953827142429662cb72409503569301f897f
|
4
|
+
data.tar.gz: 163ca05e0aef4451f4e9a654a03f65978ce4d0eb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3a41e985920f82ae6c053ef69a66245e4c18f74c0ea2c123b41b905bb609f7835fc6751c8edf53ece54002d766b61283d68d3432ca9983305078ce4eb31bafa6
|
7
|
+
data.tar.gz: 475f699c1c59e85b4218b92ff1cb205a5bbb21c7219f38749d525c2eeb64a7fae43c1349cde9c35168380235a78993592ca0f34219b9eb6c219a2b8b417d05a9
|
data/README.md
CHANGED
@@ -207,6 +207,7 @@ A third option is for the really lazy: `--auto`. In this mode the client will tr
|
|
207
207
|
--debug show API requests
|
208
208
|
-m, --my-repos Only monitor my own repositories
|
209
209
|
-r, --repo SLUG monitor given repository (can be used more than once)
|
210
|
+
-n, --[no-]notify [TYPE] send out desktop notifications (optional type: osx, growl, libnotify)
|
210
211
|
|
211
212
|
With `monitor` you can watch a live stream of what's going on:
|
212
213
|
|
@@ -220,6 +221,14 @@ With `monitor` you can watch a live stream of what's going on:
|
|
220
221
|
|
221
222
|
You can limit the repositories to monitor with `--my-repos` and `--repo SLUG`.
|
222
223
|
|
224
|
+
The monitor command can also send out desktop notifications (OSX, Growl or libnotify):
|
225
|
+
|
226
|
+
$ travis montior --pro -n
|
227
|
+
Monitoring travis-ci.com:
|
228
|
+
...
|
229
|
+
|
230
|
+
When monitoring specific repositories, notifications will be turned on by default. Disable with `--no-notify`.
|
231
|
+
|
223
232
|
#### `raw`
|
224
233
|
|
225
234
|
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:
|
@@ -1177,12 +1186,12 @@ You can check your Ruby version by running `ruby -v`:
|
|
1177
1186
|
|
1178
1187
|
Then run:
|
1179
1188
|
|
1180
|
-
$ gem install travis -v 1.5.
|
1189
|
+
$ gem install travis -v 1.5.4 --no-rdoc --no-ri
|
1181
1190
|
|
1182
1191
|
Now make sure everything is working:
|
1183
1192
|
|
1184
1193
|
$ travis version
|
1185
|
-
1.5.
|
1194
|
+
1.5.4
|
1186
1195
|
|
1187
1196
|
### Updating your Ruby
|
1188
1197
|
|
@@ -1229,6 +1238,22 @@ If you have the old `travis-cli` gem installed, you should `gem uninstall travis
|
|
1229
1238
|
|
1230
1239
|
## Version History
|
1231
1240
|
|
1241
|
+
**1.5.4** (September 7, 2013)
|
1242
|
+
|
1243
|
+
* Make `travis monitor` send out desktop notifications.
|
1244
|
+
* List available templates on `travis init --help`.
|
1245
|
+
* List available services on `travis setup --help`.
|
1246
|
+
* Make `travis setup cloudfoundry` detect the target automatically if possible
|
1247
|
+
* Have `travis setup` ask if you want to deploy/release from current branch if not on master.
|
1248
|
+
* Give autocompletion on zsh [superpowers](http://ascii.io/a/5139).
|
1249
|
+
* Add `Repository#github_language`.
|
1250
|
+
* `travis init` now is smarter when it comes to detecting the template to use (ie, "CoffeeScript" will be mapped to "node_js")
|
1251
|
+
* Running `travis init` without a language will now use `Repository#github_language` as default language rather than ruby.
|
1252
|
+
* Make `travis login` and `travis login --auto` work with GitHub Enterprise.
|
1253
|
+
* Make `travis login` work with two factor authentication.
|
1254
|
+
* Add `travis endpoint --github`.
|
1255
|
+
* Make `travis accounts` handle accounts without name better.
|
1256
|
+
|
1232
1257
|
**1.5.3** (August 22, 2013)
|
1233
1258
|
|
1234
1259
|
* Fix issues on Windows.
|
data/Rakefile
CHANGED
@@ -45,76 +45,11 @@ end
|
|
45
45
|
|
46
46
|
task :completion do
|
47
47
|
require 'travis/cli'
|
48
|
+
require 'erb'
|
48
49
|
commands = Travis::CLI.commands.sort_by { |c| c.command_name }
|
49
|
-
|
50
|
-
|
51
|
-
|
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
|
50
|
+
template = File.read('completion/travis.sh.erb')
|
51
|
+
source = ERB.new(template).result(binding).gsub(/^ +\n/, '')
|
52
|
+
File.write('completion/travis.sh', source)
|
118
53
|
end
|
119
54
|
|
120
55
|
task 'travis.gemspec' => :update
|
data/completion/travis.sh
CHANGED
@@ -1,1378 +1,129 @@
|
|
1
|
-
#
|
2
|
-
|
1
|
+
# implements tab completion for complete (bash), compsys (new zsh) and compctl (old zsh)
|
2
|
+
# this file is generated by `rake completion`
|
3
|
+
|
3
4
|
_travis_complete() {
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
history
|
17
|
-
init
|
18
|
-
login
|
19
|
-
logs
|
20
|
-
monitor
|
21
|
-
open
|
22
|
-
pubkey
|
23
|
-
raw
|
24
|
-
restart
|
25
|
-
setup
|
26
|
-
show
|
27
|
-
status
|
28
|
-
sync
|
29
|
-
token
|
30
|
-
version
|
31
|
-
whatsup
|
32
|
-
whoami"
|
33
|
-
else
|
34
|
-
case "${COMP_WORDS[1]}" in
|
35
|
-
accounts)
|
36
|
-
completions="--help
|
37
|
-
-h
|
38
|
-
--interactive
|
39
|
-
--no-interactive
|
40
|
-
-i
|
41
|
-
--explode
|
42
|
-
--no-explode
|
43
|
-
-E
|
44
|
-
--skip-version-check
|
45
|
-
--api-endpoint
|
46
|
-
-e
|
47
|
-
--pro
|
48
|
-
--org
|
49
|
-
--staging
|
50
|
-
--token
|
51
|
-
-t
|
52
|
-
--debug
|
53
|
-
--adapter"
|
54
|
-
;;
|
55
|
-
branches)
|
56
|
-
completions="--help
|
57
|
-
-h
|
58
|
-
--interactive
|
59
|
-
--no-interactive
|
60
|
-
-i
|
61
|
-
--explode
|
62
|
-
--no-explode
|
63
|
-
-E
|
64
|
-
--skip-version-check
|
65
|
-
--api-endpoint
|
66
|
-
-e
|
67
|
-
--pro
|
68
|
-
--org
|
69
|
-
--staging
|
70
|
-
--token
|
71
|
-
-t
|
72
|
-
--debug
|
73
|
-
--adapter
|
74
|
-
--repo
|
75
|
-
-r"
|
76
|
-
;;
|
77
|
-
cancel)
|
78
|
-
completions="--help
|
79
|
-
-h
|
80
|
-
--interactive
|
81
|
-
--no-interactive
|
82
|
-
-i
|
83
|
-
--explode
|
84
|
-
--no-explode
|
85
|
-
-E
|
86
|
-
--skip-version-check
|
87
|
-
--api-endpoint
|
88
|
-
-e
|
89
|
-
--pro
|
90
|
-
--org
|
91
|
-
--staging
|
92
|
-
--token
|
93
|
-
-t
|
94
|
-
--debug
|
95
|
-
--adapter
|
96
|
-
--repo
|
97
|
-
-r"
|
98
|
-
;;
|
99
|
-
console)
|
100
|
-
completions="--help
|
101
|
-
-h
|
102
|
-
--interactive
|
103
|
-
--no-interactive
|
104
|
-
-i
|
105
|
-
--explode
|
106
|
-
--no-explode
|
107
|
-
-E
|
108
|
-
--skip-version-check
|
109
|
-
--api-endpoint
|
110
|
-
-e
|
111
|
-
--pro
|
112
|
-
--org
|
113
|
-
--staging
|
114
|
-
--token
|
115
|
-
-t
|
116
|
-
--debug
|
117
|
-
--adapter"
|
118
|
-
;;
|
119
|
-
disable)
|
120
|
-
completions="--help
|
121
|
-
-h
|
122
|
-
--interactive
|
123
|
-
--no-interactive
|
124
|
-
-i
|
125
|
-
--explode
|
126
|
-
--no-explode
|
127
|
-
-E
|
128
|
-
--skip-version-check
|
129
|
-
--api-endpoint
|
130
|
-
-e
|
131
|
-
--pro
|
132
|
-
--org
|
133
|
-
--staging
|
134
|
-
--token
|
135
|
-
-t
|
136
|
-
--debug
|
137
|
-
--adapter
|
138
|
-
--repo
|
139
|
-
-r"
|
140
|
-
;;
|
141
|
-
enable)
|
142
|
-
completions="--help
|
143
|
-
-h
|
144
|
-
--interactive
|
145
|
-
--no-interactive
|
146
|
-
-i
|
147
|
-
--explode
|
148
|
-
--no-explode
|
149
|
-
-E
|
150
|
-
--skip-version-check
|
151
|
-
--api-endpoint
|
152
|
-
-e
|
153
|
-
--pro
|
154
|
-
--org
|
155
|
-
--staging
|
156
|
-
--token
|
157
|
-
-t
|
158
|
-
--debug
|
159
|
-
--adapter
|
160
|
-
--repo
|
161
|
-
-r
|
162
|
-
--skip-sync
|
163
|
-
-s"
|
164
|
-
;;
|
165
|
-
encrypt)
|
166
|
-
completions="--help
|
167
|
-
-h
|
168
|
-
--interactive
|
169
|
-
--no-interactive
|
170
|
-
-i
|
171
|
-
--explode
|
172
|
-
--no-explode
|
173
|
-
-E
|
174
|
-
--skip-version-check
|
175
|
-
--api-endpoint
|
176
|
-
-e
|
177
|
-
--pro
|
178
|
-
--org
|
179
|
-
--staging
|
180
|
-
--token
|
181
|
-
-t
|
182
|
-
--debug
|
183
|
-
--adapter
|
184
|
-
--repo
|
185
|
-
-r
|
186
|
-
--add
|
187
|
-
-a
|
188
|
-
--split
|
189
|
-
--no-split
|
190
|
-
-s
|
191
|
-
--append
|
192
|
-
-p
|
193
|
-
--override
|
194
|
-
-x"
|
195
|
-
;;
|
196
|
-
endpoint)
|
197
|
-
completions="--help
|
198
|
-
-h
|
199
|
-
--interactive
|
200
|
-
--no-interactive
|
201
|
-
-i
|
202
|
-
--explode
|
203
|
-
--no-explode
|
204
|
-
-E
|
205
|
-
--skip-version-check
|
206
|
-
--api-endpoint
|
207
|
-
-e
|
208
|
-
--pro
|
209
|
-
--org
|
210
|
-
--staging
|
211
|
-
--token
|
212
|
-
-t
|
213
|
-
--debug
|
214
|
-
--adapter
|
215
|
-
--drop-default
|
216
|
-
--set-default"
|
217
|
-
;;
|
218
|
-
help)
|
219
|
-
completions="accounts
|
220
|
-
branches
|
221
|
-
cancel
|
222
|
-
console
|
223
|
-
disable
|
224
|
-
enable
|
225
|
-
encrypt
|
226
|
-
endpoint
|
227
|
-
help
|
228
|
-
history
|
229
|
-
init
|
230
|
-
login
|
231
|
-
logs
|
232
|
-
monitor
|
233
|
-
open
|
234
|
-
pubkey
|
235
|
-
raw
|
236
|
-
restart
|
237
|
-
setup
|
238
|
-
show
|
239
|
-
status
|
240
|
-
sync
|
241
|
-
token
|
242
|
-
version
|
243
|
-
whatsup
|
244
|
-
whoami
|
245
|
-
--help
|
246
|
-
-h
|
247
|
-
--interactive
|
248
|
-
--no-interactive
|
249
|
-
-i
|
250
|
-
--explode
|
251
|
-
--no-explode
|
252
|
-
-E
|
253
|
-
--skip-version-check"
|
254
|
-
;;
|
255
|
-
history)
|
256
|
-
completions="--help
|
257
|
-
-h
|
258
|
-
--interactive
|
259
|
-
--no-interactive
|
260
|
-
-i
|
261
|
-
--explode
|
262
|
-
--no-explode
|
263
|
-
-E
|
264
|
-
--skip-version-check
|
265
|
-
--api-endpoint
|
266
|
-
-e
|
267
|
-
--pro
|
268
|
-
--org
|
269
|
-
--staging
|
270
|
-
--token
|
271
|
-
-t
|
272
|
-
--debug
|
273
|
-
--adapter
|
274
|
-
--repo
|
275
|
-
-r
|
276
|
-
--after
|
277
|
-
-a
|
278
|
-
--pull-request
|
279
|
-
-p
|
280
|
-
--branch
|
281
|
-
-b
|
282
|
-
--limit
|
283
|
-
-l
|
284
|
-
--all
|
285
|
-
--no-all"
|
286
|
-
;;
|
287
|
-
init)
|
288
|
-
completions="--help
|
289
|
-
-h
|
290
|
-
--interactive
|
291
|
-
--no-interactive
|
292
|
-
-i
|
293
|
-
--explode
|
294
|
-
--no-explode
|
295
|
-
-E
|
296
|
-
--skip-version-check
|
297
|
-
--api-endpoint
|
298
|
-
-e
|
299
|
-
--pro
|
300
|
-
--org
|
301
|
-
--staging
|
302
|
-
--token
|
303
|
-
-t
|
304
|
-
--debug
|
305
|
-
--adapter
|
306
|
-
--repo
|
307
|
-
-r
|
308
|
-
--skip-sync
|
309
|
-
-s
|
310
|
-
--force
|
311
|
-
-f
|
312
|
-
--skip-enable
|
313
|
-
-k
|
314
|
-
--print-conf
|
315
|
-
-p
|
316
|
-
--script
|
317
|
-
--before-script
|
318
|
-
--after-script
|
319
|
-
--after-success
|
320
|
-
--install
|
321
|
-
--before-install
|
322
|
-
--compiler
|
323
|
-
--otp-release
|
324
|
-
--go
|
325
|
-
--jdk
|
326
|
-
--node-js
|
327
|
-
--perl
|
328
|
-
--php
|
329
|
-
--python
|
330
|
-
--rvm
|
331
|
-
--scala
|
332
|
-
--env
|
333
|
-
--gemfile"
|
334
|
-
;;
|
335
|
-
login)
|
336
|
-
completions="--help
|
337
|
-
-h
|
338
|
-
--interactive
|
339
|
-
--no-interactive
|
340
|
-
-i
|
341
|
-
--explode
|
342
|
-
--no-explode
|
343
|
-
-E
|
344
|
-
--skip-version-check
|
345
|
-
--api-endpoint
|
346
|
-
-e
|
347
|
-
--pro
|
348
|
-
--org
|
349
|
-
--staging
|
350
|
-
--token
|
351
|
-
-t
|
352
|
-
--debug
|
353
|
-
--adapter
|
354
|
-
--github-token
|
355
|
-
--auto"
|
356
|
-
;;
|
357
|
-
logs)
|
358
|
-
completions="--help
|
359
|
-
-h
|
360
|
-
--interactive
|
361
|
-
--no-interactive
|
362
|
-
-i
|
363
|
-
--explode
|
364
|
-
--no-explode
|
365
|
-
-E
|
366
|
-
--skip-version-check
|
367
|
-
--api-endpoint
|
368
|
-
-e
|
369
|
-
--pro
|
370
|
-
--org
|
371
|
-
--staging
|
372
|
-
--token
|
373
|
-
-t
|
374
|
-
--debug
|
375
|
-
--adapter
|
376
|
-
--repo
|
377
|
-
-r"
|
378
|
-
;;
|
379
|
-
monitor)
|
380
|
-
completions="--help
|
381
|
-
-h
|
382
|
-
--interactive
|
383
|
-
--no-interactive
|
384
|
-
-i
|
385
|
-
--explode
|
386
|
-
--no-explode
|
387
|
-
-E
|
388
|
-
--skip-version-check
|
389
|
-
--api-endpoint
|
390
|
-
-e
|
391
|
-
--pro
|
392
|
-
--org
|
393
|
-
--staging
|
394
|
-
--token
|
395
|
-
-t
|
396
|
-
--debug
|
397
|
-
--adapter
|
398
|
-
--my-repos
|
399
|
-
-m
|
400
|
-
--repo
|
401
|
-
-r"
|
402
|
-
;;
|
403
|
-
open)
|
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
|
-
--github
|
425
|
-
-g
|
426
|
-
--print
|
427
|
-
-p"
|
428
|
-
;;
|
429
|
-
pubkey)
|
430
|
-
completions="--help
|
431
|
-
-h
|
432
|
-
--interactive
|
433
|
-
--no-interactive
|
434
|
-
-i
|
435
|
-
--explode
|
436
|
-
--no-explode
|
437
|
-
-E
|
438
|
-
--skip-version-check
|
439
|
-
--api-endpoint
|
440
|
-
-e
|
441
|
-
--pro
|
442
|
-
--org
|
443
|
-
--staging
|
444
|
-
--token
|
445
|
-
-t
|
446
|
-
--debug
|
447
|
-
--adapter
|
448
|
-
--repo
|
449
|
-
-r
|
450
|
-
--pem
|
451
|
-
--no-pem
|
452
|
-
-p"
|
453
|
-
;;
|
454
|
-
raw)
|
455
|
-
completions="--help
|
456
|
-
-h
|
457
|
-
--interactive
|
458
|
-
--no-interactive
|
459
|
-
-i
|
460
|
-
--explode
|
461
|
-
--no-explode
|
462
|
-
-E
|
463
|
-
--skip-version-check
|
464
|
-
--api-endpoint
|
465
|
-
-e
|
466
|
-
--pro
|
467
|
-
--org
|
468
|
-
--staging
|
469
|
-
--token
|
470
|
-
-t
|
471
|
-
--debug
|
472
|
-
--adapter
|
473
|
-
--json
|
474
|
-
--no-json"
|
475
|
-
;;
|
476
|
-
restart)
|
477
|
-
completions="--help
|
478
|
-
-h
|
479
|
-
--interactive
|
480
|
-
--no-interactive
|
481
|
-
-i
|
482
|
-
--explode
|
483
|
-
--no-explode
|
484
|
-
-E
|
485
|
-
--skip-version-check
|
486
|
-
--api-endpoint
|
487
|
-
-e
|
488
|
-
--pro
|
489
|
-
--org
|
490
|
-
--staging
|
491
|
-
--token
|
492
|
-
-t
|
493
|
-
--debug
|
494
|
-
--adapter
|
495
|
-
--repo
|
496
|
-
-r"
|
497
|
-
;;
|
498
|
-
setup)
|
499
|
-
completions="heroku
|
500
|
-
engineyard
|
501
|
-
openshift
|
502
|
-
rubygems
|
503
|
-
nodejitsu
|
504
|
-
sauce_connect
|
505
|
-
sauce_labs
|
506
|
-
sauce
|
507
|
-
cloudcontrol
|
508
|
-
cloudfoundry
|
509
|
-
--help
|
510
|
-
-h
|
511
|
-
--interactive
|
512
|
-
--no-interactive
|
513
|
-
-i
|
514
|
-
--explode
|
515
|
-
--no-explode
|
516
|
-
-E
|
517
|
-
--skip-version-check
|
518
|
-
--api-endpoint
|
519
|
-
-e
|
520
|
-
--pro
|
521
|
-
--org
|
522
|
-
--staging
|
523
|
-
--token
|
524
|
-
-t
|
525
|
-
--debug
|
526
|
-
--adapter
|
527
|
-
--repo
|
528
|
-
-r
|
529
|
-
--force
|
530
|
-
-f"
|
531
|
-
;;
|
532
|
-
show)
|
533
|
-
completions="--help
|
534
|
-
-h
|
535
|
-
--interactive
|
536
|
-
--no-interactive
|
537
|
-
-i
|
538
|
-
--explode
|
539
|
-
--no-explode
|
540
|
-
-E
|
541
|
-
--skip-version-check
|
542
|
-
--api-endpoint
|
543
|
-
-e
|
544
|
-
--pro
|
545
|
-
--org
|
546
|
-
--staging
|
547
|
-
--token
|
548
|
-
-t
|
549
|
-
--debug
|
550
|
-
--adapter
|
551
|
-
--repo
|
552
|
-
-r"
|
553
|
-
;;
|
554
|
-
status)
|
555
|
-
completions="--help
|
556
|
-
-h
|
557
|
-
--interactive
|
558
|
-
--no-interactive
|
559
|
-
-i
|
560
|
-
--explode
|
561
|
-
--no-explode
|
562
|
-
-E
|
563
|
-
--skip-version-check
|
564
|
-
--api-endpoint
|
565
|
-
-e
|
566
|
-
--pro
|
567
|
-
--org
|
568
|
-
--staging
|
569
|
-
--token
|
570
|
-
-t
|
571
|
-
--debug
|
572
|
-
--adapter
|
573
|
-
--repo
|
574
|
-
-r
|
575
|
-
--exit-code
|
576
|
-
--no-exit-code
|
577
|
-
-x
|
578
|
-
--quiet
|
579
|
-
--no-quiet
|
580
|
-
-q
|
581
|
-
--fail-pending
|
582
|
-
--no-fail-pending
|
583
|
-
-p"
|
584
|
-
;;
|
585
|
-
sync)
|
586
|
-
completions="--help
|
587
|
-
-h
|
588
|
-
--interactive
|
589
|
-
--no-interactive
|
590
|
-
-i
|
591
|
-
--explode
|
592
|
-
--no-explode
|
593
|
-
-E
|
594
|
-
--skip-version-check
|
595
|
-
--api-endpoint
|
596
|
-
-e
|
597
|
-
--pro
|
598
|
-
--org
|
599
|
-
--staging
|
600
|
-
--token
|
601
|
-
-t
|
602
|
-
--debug
|
603
|
-
--adapter
|
604
|
-
--check
|
605
|
-
-c
|
606
|
-
--background
|
607
|
-
-b
|
608
|
-
--force
|
609
|
-
-f"
|
610
|
-
;;
|
611
|
-
token)
|
612
|
-
completions="--help
|
613
|
-
-h
|
614
|
-
--interactive
|
615
|
-
--no-interactive
|
616
|
-
-i
|
617
|
-
--explode
|
618
|
-
--no-explode
|
619
|
-
-E
|
620
|
-
--skip-version-check
|
621
|
-
--api-endpoint
|
622
|
-
-e
|
623
|
-
--pro
|
624
|
-
--org
|
625
|
-
--staging
|
626
|
-
--token
|
627
|
-
-t
|
628
|
-
--debug
|
629
|
-
--adapter"
|
630
|
-
;;
|
631
|
-
version)
|
632
|
-
completions="--help
|
633
|
-
-h
|
634
|
-
--interactive
|
635
|
-
--no-interactive
|
636
|
-
-i
|
637
|
-
--explode
|
638
|
-
--no-explode
|
639
|
-
-E
|
640
|
-
--skip-version-check"
|
641
|
-
;;
|
642
|
-
whatsup)
|
643
|
-
completions="--help
|
644
|
-
-h
|
645
|
-
--interactive
|
646
|
-
--no-interactive
|
647
|
-
-i
|
648
|
-
--explode
|
649
|
-
--no-explode
|
650
|
-
-E
|
651
|
-
--skip-version-check
|
652
|
-
--api-endpoint
|
653
|
-
-e
|
654
|
-
--pro
|
655
|
-
--org
|
656
|
-
--staging
|
657
|
-
--token
|
658
|
-
-t
|
659
|
-
--debug
|
660
|
-
--adapter
|
661
|
-
--my-repos
|
662
|
-
-m"
|
663
|
-
;;
|
664
|
-
whoami)
|
665
|
-
completions="--help
|
666
|
-
-h
|
667
|
-
--interactive
|
668
|
-
--no-interactive
|
669
|
-
-i
|
670
|
-
--explode
|
671
|
-
--no-explode
|
672
|
-
-E
|
673
|
-
--skip-version-check
|
674
|
-
--api-endpoint
|
675
|
-
-e
|
676
|
-
--pro
|
677
|
-
--org
|
678
|
-
--staging
|
679
|
-
--token
|
680
|
-
-t
|
681
|
-
--debug
|
682
|
-
--adapter"
|
683
|
-
;;
|
684
|
-
esac
|
685
|
-
fi
|
686
|
-
COMPREPLY=( $(compgen -W "$completions" -- "${COMP_WORDS[COMP_CWORD]}") )
|
687
|
-
}
|
688
|
-
complete -F _travis_complete travis
|
689
|
-
fi
|
690
|
-
if [ -n "$ZSH_VERSION" ]; then
|
691
|
-
_travis_complete() {
|
692
|
-
local words completions
|
693
|
-
read -cA words
|
694
|
-
if [ "${#words}" -eq 2 ]; then
|
695
|
-
completions="accounts
|
696
|
-
branches
|
697
|
-
cancel
|
698
|
-
console
|
699
|
-
disable
|
700
|
-
enable
|
701
|
-
encrypt
|
702
|
-
endpoint
|
703
|
-
help
|
704
|
-
history
|
705
|
-
init
|
706
|
-
login
|
707
|
-
logs
|
708
|
-
monitor
|
709
|
-
open
|
710
|
-
pubkey
|
711
|
-
raw
|
712
|
-
restart
|
713
|
-
setup
|
714
|
-
show
|
715
|
-
status
|
716
|
-
sync
|
717
|
-
token
|
718
|
-
version
|
719
|
-
whatsup
|
720
|
-
whoami"
|
721
|
-
else
|
722
|
-
case "${words[2]}" in
|
723
|
-
accounts)
|
724
|
-
completions="--help
|
725
|
-
-h
|
726
|
-
--interactive
|
727
|
-
--no-interactive
|
728
|
-
-i
|
729
|
-
--explode
|
730
|
-
--no-explode
|
731
|
-
-E
|
732
|
-
--skip-version-check
|
733
|
-
--api-endpoint
|
734
|
-
-e
|
735
|
-
--pro
|
736
|
-
--org
|
737
|
-
--staging
|
738
|
-
--token
|
739
|
-
-t
|
740
|
-
--debug
|
741
|
-
--adapter"
|
742
|
-
;;
|
743
|
-
branches)
|
744
|
-
completions="--help
|
745
|
-
-h
|
746
|
-
--interactive
|
747
|
-
--no-interactive
|
748
|
-
-i
|
749
|
-
--explode
|
750
|
-
--no-explode
|
751
|
-
-E
|
752
|
-
--skip-version-check
|
753
|
-
--api-endpoint
|
754
|
-
-e
|
755
|
-
--pro
|
756
|
-
--org
|
757
|
-
--staging
|
758
|
-
--token
|
759
|
-
-t
|
760
|
-
--debug
|
761
|
-
--adapter
|
762
|
-
--repo
|
763
|
-
-r"
|
764
|
-
;;
|
765
|
-
cancel)
|
766
|
-
completions="--help
|
767
|
-
-h
|
768
|
-
--interactive
|
769
|
-
--no-interactive
|
770
|
-
-i
|
771
|
-
--explode
|
772
|
-
--no-explode
|
773
|
-
-E
|
774
|
-
--skip-version-check
|
775
|
-
--api-endpoint
|
776
|
-
-e
|
777
|
-
--pro
|
778
|
-
--org
|
779
|
-
--staging
|
780
|
-
--token
|
781
|
-
-t
|
782
|
-
--debug
|
783
|
-
--adapter
|
784
|
-
--repo
|
785
|
-
-r"
|
786
|
-
;;
|
787
|
-
console)
|
788
|
-
completions="--help
|
789
|
-
-h
|
790
|
-
--interactive
|
791
|
-
--no-interactive
|
792
|
-
-i
|
793
|
-
--explode
|
794
|
-
--no-explode
|
795
|
-
-E
|
796
|
-
--skip-version-check
|
797
|
-
--api-endpoint
|
798
|
-
-e
|
799
|
-
--pro
|
800
|
-
--org
|
801
|
-
--staging
|
802
|
-
--token
|
803
|
-
-t
|
804
|
-
--debug
|
805
|
-
--adapter"
|
806
|
-
;;
|
807
|
-
disable)
|
808
|
-
completions="--help
|
809
|
-
-h
|
810
|
-
--interactive
|
811
|
-
--no-interactive
|
812
|
-
-i
|
813
|
-
--explode
|
814
|
-
--no-explode
|
815
|
-
-E
|
816
|
-
--skip-version-check
|
817
|
-
--api-endpoint
|
818
|
-
-e
|
819
|
-
--pro
|
820
|
-
--org
|
821
|
-
--staging
|
822
|
-
--token
|
823
|
-
-t
|
824
|
-
--debug
|
825
|
-
--adapter
|
826
|
-
--repo
|
827
|
-
-r"
|
828
|
-
;;
|
829
|
-
enable)
|
830
|
-
completions="--help
|
831
|
-
-h
|
832
|
-
--interactive
|
833
|
-
--no-interactive
|
834
|
-
-i
|
835
|
-
--explode
|
836
|
-
--no-explode
|
837
|
-
-E
|
838
|
-
--skip-version-check
|
839
|
-
--api-endpoint
|
840
|
-
-e
|
841
|
-
--pro
|
842
|
-
--org
|
843
|
-
--staging
|
844
|
-
--token
|
845
|
-
-t
|
846
|
-
--debug
|
847
|
-
--adapter
|
848
|
-
--repo
|
849
|
-
-r
|
850
|
-
--skip-sync
|
851
|
-
-s"
|
852
|
-
;;
|
853
|
-
encrypt)
|
854
|
-
completions="--help
|
855
|
-
-h
|
856
|
-
--interactive
|
857
|
-
--no-interactive
|
858
|
-
-i
|
859
|
-
--explode
|
860
|
-
--no-explode
|
861
|
-
-E
|
862
|
-
--skip-version-check
|
863
|
-
--api-endpoint
|
864
|
-
-e
|
865
|
-
--pro
|
866
|
-
--org
|
867
|
-
--staging
|
868
|
-
--token
|
869
|
-
-t
|
870
|
-
--debug
|
871
|
-
--adapter
|
872
|
-
--repo
|
873
|
-
-r
|
874
|
-
--add
|
875
|
-
-a
|
876
|
-
--split
|
877
|
-
--no-split
|
878
|
-
-s
|
879
|
-
--append
|
880
|
-
-p
|
881
|
-
--override
|
882
|
-
-x"
|
883
|
-
;;
|
884
|
-
endpoint)
|
885
|
-
completions="--help
|
886
|
-
-h
|
887
|
-
--interactive
|
888
|
-
--no-interactive
|
889
|
-
-i
|
890
|
-
--explode
|
891
|
-
--no-explode
|
892
|
-
-E
|
893
|
-
--skip-version-check
|
894
|
-
--api-endpoint
|
895
|
-
-e
|
896
|
-
--pro
|
897
|
-
--org
|
898
|
-
--staging
|
899
|
-
--token
|
900
|
-
-t
|
901
|
-
--debug
|
902
|
-
--adapter
|
903
|
-
--drop-default
|
904
|
-
--set-default"
|
905
|
-
;;
|
906
|
-
help)
|
907
|
-
completions="accounts
|
908
|
-
branches
|
909
|
-
cancel
|
910
|
-
console
|
911
|
-
disable
|
912
|
-
enable
|
913
|
-
encrypt
|
914
|
-
endpoint
|
915
|
-
help
|
916
|
-
history
|
917
|
-
init
|
918
|
-
login
|
919
|
-
logs
|
920
|
-
monitor
|
921
|
-
open
|
922
|
-
pubkey
|
923
|
-
raw
|
924
|
-
restart
|
925
|
-
setup
|
926
|
-
show
|
927
|
-
status
|
928
|
-
sync
|
929
|
-
token
|
930
|
-
version
|
931
|
-
whatsup
|
932
|
-
whoami
|
933
|
-
--help
|
934
|
-
-h
|
935
|
-
--interactive
|
936
|
-
--no-interactive
|
937
|
-
-i
|
938
|
-
--explode
|
939
|
-
--no-explode
|
940
|
-
-E
|
941
|
-
--skip-version-check"
|
942
|
-
;;
|
943
|
-
history)
|
944
|
-
completions="--help
|
945
|
-
-h
|
946
|
-
--interactive
|
947
|
-
--no-interactive
|
948
|
-
-i
|
949
|
-
--explode
|
950
|
-
--no-explode
|
951
|
-
-E
|
952
|
-
--skip-version-check
|
953
|
-
--api-endpoint
|
954
|
-
-e
|
955
|
-
--pro
|
956
|
-
--org
|
957
|
-
--staging
|
958
|
-
--token
|
959
|
-
-t
|
960
|
-
--debug
|
961
|
-
--adapter
|
962
|
-
--repo
|
963
|
-
-r
|
964
|
-
--after
|
965
|
-
-a
|
966
|
-
--pull-request
|
967
|
-
-p
|
968
|
-
--branch
|
969
|
-
-b
|
970
|
-
--limit
|
971
|
-
-l
|
972
|
-
--all
|
973
|
-
--no-all"
|
974
|
-
;;
|
975
|
-
init)
|
976
|
-
completions="--help
|
977
|
-
-h
|
978
|
-
--interactive
|
979
|
-
--no-interactive
|
980
|
-
-i
|
981
|
-
--explode
|
982
|
-
--no-explode
|
983
|
-
-E
|
984
|
-
--skip-version-check
|
985
|
-
--api-endpoint
|
986
|
-
-e
|
987
|
-
--pro
|
988
|
-
--org
|
989
|
-
--staging
|
990
|
-
--token
|
991
|
-
-t
|
992
|
-
--debug
|
993
|
-
--adapter
|
994
|
-
--repo
|
995
|
-
-r
|
996
|
-
--skip-sync
|
997
|
-
-s
|
998
|
-
--force
|
999
|
-
-f
|
1000
|
-
--skip-enable
|
1001
|
-
-k
|
1002
|
-
--print-conf
|
1003
|
-
-p
|
1004
|
-
--script
|
1005
|
-
--before-script
|
1006
|
-
--after-script
|
1007
|
-
--after-success
|
1008
|
-
--install
|
1009
|
-
--before-install
|
1010
|
-
--compiler
|
1011
|
-
--otp-release
|
1012
|
-
--go
|
1013
|
-
--jdk
|
1014
|
-
--node-js
|
1015
|
-
--perl
|
1016
|
-
--php
|
1017
|
-
--python
|
1018
|
-
--rvm
|
1019
|
-
--scala
|
1020
|
-
--env
|
1021
|
-
--gemfile"
|
1022
|
-
;;
|
1023
|
-
login)
|
1024
|
-
completions="--help
|
1025
|
-
-h
|
1026
|
-
--interactive
|
1027
|
-
--no-interactive
|
1028
|
-
-i
|
1029
|
-
--explode
|
1030
|
-
--no-explode
|
1031
|
-
-E
|
1032
|
-
--skip-version-check
|
1033
|
-
--api-endpoint
|
1034
|
-
-e
|
1035
|
-
--pro
|
1036
|
-
--org
|
1037
|
-
--staging
|
1038
|
-
--token
|
1039
|
-
-t
|
1040
|
-
--debug
|
1041
|
-
--adapter
|
1042
|
-
--github-token
|
1043
|
-
--auto"
|
1044
|
-
;;
|
1045
|
-
logs)
|
1046
|
-
completions="--help
|
1047
|
-
-h
|
1048
|
-
--interactive
|
1049
|
-
--no-interactive
|
1050
|
-
-i
|
1051
|
-
--explode
|
1052
|
-
--no-explode
|
1053
|
-
-E
|
1054
|
-
--skip-version-check
|
1055
|
-
--api-endpoint
|
1056
|
-
-e
|
1057
|
-
--pro
|
1058
|
-
--org
|
1059
|
-
--staging
|
1060
|
-
--token
|
1061
|
-
-t
|
1062
|
-
--debug
|
1063
|
-
--adapter
|
1064
|
-
--repo
|
1065
|
-
-r"
|
1066
|
-
;;
|
1067
|
-
monitor)
|
1068
|
-
completions="--help
|
1069
|
-
-h
|
1070
|
-
--interactive
|
1071
|
-
--no-interactive
|
1072
|
-
-i
|
1073
|
-
--explode
|
1074
|
-
--no-explode
|
1075
|
-
-E
|
1076
|
-
--skip-version-check
|
1077
|
-
--api-endpoint
|
1078
|
-
-e
|
1079
|
-
--pro
|
1080
|
-
--org
|
1081
|
-
--staging
|
1082
|
-
--token
|
1083
|
-
-t
|
1084
|
-
--debug
|
1085
|
-
--adapter
|
1086
|
-
--my-repos
|
1087
|
-
-m
|
1088
|
-
--repo
|
1089
|
-
-r"
|
1090
|
-
;;
|
1091
|
-
open)
|
1092
|
-
completions="--help
|
1093
|
-
-h
|
1094
|
-
--interactive
|
1095
|
-
--no-interactive
|
1096
|
-
-i
|
1097
|
-
--explode
|
1098
|
-
--no-explode
|
1099
|
-
-E
|
1100
|
-
--skip-version-check
|
1101
|
-
--api-endpoint
|
1102
|
-
-e
|
1103
|
-
--pro
|
1104
|
-
--org
|
1105
|
-
--staging
|
1106
|
-
--token
|
1107
|
-
-t
|
1108
|
-
--debug
|
1109
|
-
--adapter
|
1110
|
-
--repo
|
1111
|
-
-r
|
1112
|
-
--github
|
1113
|
-
-g
|
1114
|
-
--print
|
1115
|
-
-p"
|
1116
|
-
;;
|
1117
|
-
pubkey)
|
1118
|
-
completions="--help
|
1119
|
-
-h
|
1120
|
-
--interactive
|
1121
|
-
--no-interactive
|
1122
|
-
-i
|
1123
|
-
--explode
|
1124
|
-
--no-explode
|
1125
|
-
-E
|
1126
|
-
--skip-version-check
|
1127
|
-
--api-endpoint
|
1128
|
-
-e
|
1129
|
-
--pro
|
1130
|
-
--org
|
1131
|
-
--staging
|
1132
|
-
--token
|
1133
|
-
-t
|
1134
|
-
--debug
|
1135
|
-
--adapter
|
1136
|
-
--repo
|
1137
|
-
-r
|
1138
|
-
--pem
|
1139
|
-
--no-pem
|
1140
|
-
-p"
|
1141
|
-
;;
|
1142
|
-
raw)
|
1143
|
-
completions="--help
|
1144
|
-
-h
|
1145
|
-
--interactive
|
1146
|
-
--no-interactive
|
1147
|
-
-i
|
1148
|
-
--explode
|
1149
|
-
--no-explode
|
1150
|
-
-E
|
1151
|
-
--skip-version-check
|
1152
|
-
--api-endpoint
|
1153
|
-
-e
|
1154
|
-
--pro
|
1155
|
-
--org
|
1156
|
-
--staging
|
1157
|
-
--token
|
1158
|
-
-t
|
1159
|
-
--debug
|
1160
|
-
--adapter
|
1161
|
-
--json
|
1162
|
-
--no-json"
|
1163
|
-
;;
|
1164
|
-
restart)
|
1165
|
-
completions="--help
|
1166
|
-
-h
|
1167
|
-
--interactive
|
1168
|
-
--no-interactive
|
1169
|
-
-i
|
1170
|
-
--explode
|
1171
|
-
--no-explode
|
1172
|
-
-E
|
1173
|
-
--skip-version-check
|
1174
|
-
--api-endpoint
|
1175
|
-
-e
|
1176
|
-
--pro
|
1177
|
-
--org
|
1178
|
-
--staging
|
1179
|
-
--token
|
1180
|
-
-t
|
1181
|
-
--debug
|
1182
|
-
--adapter
|
1183
|
-
--repo
|
1184
|
-
-r"
|
1185
|
-
;;
|
1186
|
-
setup)
|
1187
|
-
completions="heroku
|
1188
|
-
engineyard
|
1189
|
-
openshift
|
1190
|
-
rubygems
|
1191
|
-
nodejitsu
|
1192
|
-
sauce_connect
|
1193
|
-
sauce_labs
|
1194
|
-
sauce
|
1195
|
-
cloudcontrol
|
1196
|
-
cloudfoundry
|
1197
|
-
--help
|
1198
|
-
-h
|
1199
|
-
--interactive
|
1200
|
-
--no-interactive
|
1201
|
-
-i
|
1202
|
-
--explode
|
1203
|
-
--no-explode
|
1204
|
-
-E
|
1205
|
-
--skip-version-check
|
1206
|
-
--api-endpoint
|
1207
|
-
-e
|
1208
|
-
--pro
|
1209
|
-
--org
|
1210
|
-
--staging
|
1211
|
-
--token
|
1212
|
-
-t
|
1213
|
-
--debug
|
1214
|
-
--adapter
|
1215
|
-
--repo
|
1216
|
-
-r
|
1217
|
-
--force
|
1218
|
-
-f"
|
1219
|
-
;;
|
1220
|
-
show)
|
1221
|
-
completions="--help
|
1222
|
-
-h
|
1223
|
-
--interactive
|
1224
|
-
--no-interactive
|
1225
|
-
-i
|
1226
|
-
--explode
|
1227
|
-
--no-explode
|
1228
|
-
-E
|
1229
|
-
--skip-version-check
|
1230
|
-
--api-endpoint
|
1231
|
-
-e
|
1232
|
-
--pro
|
1233
|
-
--org
|
1234
|
-
--staging
|
1235
|
-
--token
|
1236
|
-
-t
|
1237
|
-
--debug
|
1238
|
-
--adapter
|
1239
|
-
--repo
|
1240
|
-
-r"
|
1241
|
-
;;
|
1242
|
-
status)
|
1243
|
-
completions="--help
|
1244
|
-
-h
|
1245
|
-
--interactive
|
1246
|
-
--no-interactive
|
1247
|
-
-i
|
1248
|
-
--explode
|
1249
|
-
--no-explode
|
1250
|
-
-E
|
1251
|
-
--skip-version-check
|
1252
|
-
--api-endpoint
|
1253
|
-
-e
|
1254
|
-
--pro
|
1255
|
-
--org
|
1256
|
-
--staging
|
1257
|
-
--token
|
1258
|
-
-t
|
1259
|
-
--debug
|
1260
|
-
--adapter
|
1261
|
-
--repo
|
1262
|
-
-r
|
1263
|
-
--exit-code
|
1264
|
-
--no-exit-code
|
1265
|
-
-x
|
1266
|
-
--quiet
|
1267
|
-
--no-quiet
|
1268
|
-
-q
|
1269
|
-
--fail-pending
|
1270
|
-
--no-fail-pending
|
1271
|
-
-p"
|
1272
|
-
;;
|
1273
|
-
sync)
|
1274
|
-
completions="--help
|
1275
|
-
-h
|
1276
|
-
--interactive
|
1277
|
-
--no-interactive
|
1278
|
-
-i
|
1279
|
-
--explode
|
1280
|
-
--no-explode
|
1281
|
-
-E
|
1282
|
-
--skip-version-check
|
1283
|
-
--api-endpoint
|
1284
|
-
-e
|
1285
|
-
--pro
|
1286
|
-
--org
|
1287
|
-
--staging
|
1288
|
-
--token
|
1289
|
-
-t
|
1290
|
-
--debug
|
1291
|
-
--adapter
|
1292
|
-
--check
|
1293
|
-
-c
|
1294
|
-
--background
|
1295
|
-
-b
|
1296
|
-
--force
|
1297
|
-
-f"
|
1298
|
-
;;
|
1299
|
-
token)
|
1300
|
-
completions="--help
|
1301
|
-
-h
|
1302
|
-
--interactive
|
1303
|
-
--no-interactive
|
1304
|
-
-i
|
1305
|
-
--explode
|
1306
|
-
--no-explode
|
1307
|
-
-E
|
1308
|
-
--skip-version-check
|
1309
|
-
--api-endpoint
|
1310
|
-
-e
|
1311
|
-
--pro
|
1312
|
-
--org
|
1313
|
-
--staging
|
1314
|
-
--token
|
1315
|
-
-t
|
1316
|
-
--debug
|
1317
|
-
--adapter"
|
1318
|
-
;;
|
1319
|
-
version)
|
1320
|
-
completions="--help
|
1321
|
-
-h
|
1322
|
-
--interactive
|
1323
|
-
--no-interactive
|
1324
|
-
-i
|
1325
|
-
--explode
|
1326
|
-
--no-explode
|
1327
|
-
-E
|
1328
|
-
--skip-version-check"
|
1329
|
-
;;
|
1330
|
-
whatsup)
|
1331
|
-
completions="--help
|
1332
|
-
-h
|
1333
|
-
--interactive
|
1334
|
-
--no-interactive
|
1335
|
-
-i
|
1336
|
-
--explode
|
1337
|
-
--no-explode
|
1338
|
-
-E
|
1339
|
-
--skip-version-check
|
1340
|
-
--api-endpoint
|
1341
|
-
-e
|
1342
|
-
--pro
|
1343
|
-
--org
|
1344
|
-
--staging
|
1345
|
-
--token
|
1346
|
-
-t
|
1347
|
-
--debug
|
1348
|
-
--adapter
|
1349
|
-
--my-repos
|
1350
|
-
-m"
|
1351
|
-
;;
|
1352
|
-
whoami)
|
1353
|
-
completions="--help
|
1354
|
-
-h
|
1355
|
-
--interactive
|
1356
|
-
--no-interactive
|
1357
|
-
-i
|
1358
|
-
--explode
|
1359
|
-
--no-explode
|
1360
|
-
-E
|
1361
|
-
--skip-version-check
|
1362
|
-
--api-endpoint
|
1363
|
-
-e
|
1364
|
-
--pro
|
1365
|
-
--org
|
1366
|
-
--staging
|
1367
|
-
--token
|
1368
|
-
-t
|
1369
|
-
--debug
|
1370
|
-
--adapter"
|
1371
|
-
;;
|
1372
|
-
esac
|
1373
|
-
fi
|
1374
|
-
reply=("${(ps:
|
1375
|
-
:)completions}")
|
5
|
+
case $1 in
|
6
|
+
1) _travis_commands;;
|
7
|
+
2)
|
8
|
+
case "$2" in
|
9
|
+
# commands with smart completions (in addition to command line flags)
|
10
|
+
help) _travis_commands;;
|
11
|
+
setup) _travis_setup;;
|
12
|
+
init) _travis_init;;
|
13
|
+
*) _travis_option;;
|
14
|
+
esac;;
|
15
|
+
*) _travis_option;;
|
16
|
+
esac
|
1376
17
|
}
|
1377
|
-
|
18
|
+
|
19
|
+
if type compdef 1>/dev/null 2>/dev/null; then
|
20
|
+
compdef _travis travis
|
21
|
+
_travis() { _travis_complete $((${#words} - 1)) "${words[2]}"; }
|
22
|
+
_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; }
|
23
|
+
_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; }
|
24
|
+
_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; }
|
25
|
+
_travis_option() {
|
26
|
+
case "${words[2]}" in
|
27
|
+
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;;
|
28
|
+
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;;
|
29
|
+
cancel) _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;;
|
30
|
+
console) _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;;
|
31
|
+
disable) _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;;
|
32
|
+
enable) _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)]" "-s[don't trigger a sync if the repo is unknown]" "--skip-sync[don't trigger a sync if the repo is unknown]" '*:file:_files' && return 0;;
|
33
|
+
encrypt) _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)]" "-a[adds it to .travis.yml under KEY (default: env.global)]" "--add[adds it to .travis.yml under KEY (default: env.global)]" "-s[treat each line as a separate input]" "--split[treat each line as a separate input]" "--no-split[treat each line as a separate input]" "-p[don't override existing values, instead treat as list]" "--append[don't override existing values, instead treat as list]" "-x[override existing value]" "--override[override existing value]" '*:file:_files' && return 0;;
|
34
|
+
endpoint) _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]" "--drop-default[delete stored default endpoint]" "--set-default[store endpoint as global default]" "--github[display github endpoint]" '*:file:_files' && return 0;;
|
35
|
+
help) _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]" '*:file:_files' && return 0;;
|
36
|
+
history) _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)]" "-a[Only show history after a given build number]" "--after[Only show history after a given build number]" "-p[Only show history for the given Pull Request]" "--pull-request[Only show history for the given Pull Request]" "-b[Only show history for the given branch]" "--branch[Only show history for the given branch]" "-l[Maximum number of history items]" "--limit[Maximum number of history items]" "--all[Display all history items]" "--no-all[Display all history items]" '*:file:_files' && return 0;;
|
37
|
+
init) _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)]" "-s[don't trigger a sync if the repo is unknown]" "--skip-sync[don't trigger a sync if the repo is unknown]" "-f[override .travis.yml if it already exists]" "--force[override .travis.yml if it already exists]" "-k[do not enable project, only add .travis.yml]" "--skip-enable[do not enable project, only add .travis.yml]" "-p[print generated config instead of writing to file]" "--print-conf[print generated config instead of writing to file]" "--script[sets script option in .travis.yml (can be used more than once)]" "--before-script[sets before_script option in .travis.yml (can be used more than once)]" "--after-script[sets after_script option in .travis.yml (can be used more than once)]" "--after-success[sets after_success option in .travis.yml (can be used more than once)]" "--install[sets install option in .travis.yml (can be used more than once)]" "--before-install[sets before_install option in .travis.yml (can be used more than once)]" "--compiler[sets compiler option in .travis.yml (can be used more than once)]" "--otp-release[sets otp_release option in .travis.yml (can be used more than once)]" "--go[sets go option in .travis.yml (can be used more than once)]" "--jdk[sets jdk option in .travis.yml (can be used more than once)]" "--node-js[sets node_js option in .travis.yml (can be used more than once)]" "--perl[sets perl option in .travis.yml (can be used more than once)]" "--php[sets php option in .travis.yml (can be used more than once)]" "--python[sets python option in .travis.yml (can be used more than once)]" "--rvm[sets rvm option in .travis.yml (can be used more than once)]" "--scala[sets scala option in .travis.yml (can be used more than once)]" "--env[sets env option in .travis.yml (can be used more than once)]" "--gemfile[sets gemfile option in .travis.yml (can be used more than once)]" '*:file:_files' && return 0;;
|
38
|
+
login) _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]" "--github-token[identify by GitHub token]" "--auto[try to figure out who you are automatically (might send another apps token to Travis, token will not be stored)]" '*:file:_files' && return 0;;
|
39
|
+
logs) _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;;
|
40
|
+
monitor) _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]" "-m[Only monitor my own repositories]" "--my-repos[Only monitor my own repositories]" "-r[monitor given repository (can be used more than once)]" "--repo[monitor given repository (can be used more than once)]" "-n[send out desktop notifications (optional type: osx, growl, libnotify)]" "--notify[send out desktop notifications (optional type: osx, growl, libnotify)]" "--no-notify[send out desktop notifications (optional type: osx, growl, libnotify)]" '*:file:_files' && return 0;;
|
41
|
+
open) _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)]" "-g[Open the corresponding project, compare view or pull request on GitHub]" "--github[Open the corresponding project, compare view or pull request on GitHub]" "-p[Print out the URL instead of opening it in a browser]" "--print[Print out the URL instead of opening it in a browser]" '*:file:_files' && return 0;;
|
42
|
+
pubkey) _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)]" "-p[encode in format used by pem]" "--pem[encode in format used by pem]" "--no-pem[encode in format used by pem]" '*:file:_files' && return 0;;
|
43
|
+
raw) _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]" "--json[display as json]" "--no-json[display as json]" '*:file:_files' && return 0;;
|
44
|
+
restart) _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;;
|
45
|
+
setup) _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)]" "-f[override config section if it already exists]" "--force[override config section if it already exists]" '*:file:_files' && return 0;;
|
46
|
+
show) _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;;
|
47
|
+
status) _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)]" "-x[sets the exit code to 1 if the build failed]" "--exit-code[sets the exit code to 1 if the build failed]" "--no-exit-code[sets the exit code to 1 if the build failed]" "-q[does not print anything]" "--quiet[does not print anything]" "--no-quiet[does not print anything]" "-p[sets the status code to 1 if the build is pending]" "--fail-pending[sets the status code to 1 if the build is pending]" "--no-fail-pending[sets the status code to 1 if the build is pending]" '*:file:_files' && return 0;;
|
48
|
+
sync) _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]" "-c[only check the sync status]" "--check[only check the sync status]" "-b[will trigger sync but not block until sync is done]" "--background[will trigger sync but not block until sync is done]" "-f[will force sync, even if one is already running]" "--force[will force sync, even if one is already running]" '*:file:_files' && return 0;;
|
49
|
+
token) _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;;
|
50
|
+
version) _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]" '*:file:_files' && return 0;;
|
51
|
+
whatsup) _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]" "-m[Only display my own repositories]" "--my-repos[Only display my own repositories]" '*:file:_files' && return 0;;
|
52
|
+
whoami) _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;;
|
53
|
+
esac
|
54
|
+
}
|
55
|
+
elif type compctl 1>/dev/null 2>/dev/null; then
|
56
|
+
compctl -K _travis travis
|
57
|
+
_travis() { read -cA words && _travis_complete $((${#words} - 1)) "${words[2]}"; }
|
58
|
+
_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"); }
|
59
|
+
_travis_setup() { reply=("cloudcontrol" "cloudfoundry" "engineyard" "heroku" "nodejitsu" "openshift" "rubygems" "sauce_connect"); }
|
60
|
+
_travis_init() { reply=("c" "clojure" "cpp" "erlang" "go" "groovy" "haskell" "java" "node_js" "objective-c" "perl" "php" "python" "ruby" "scala"); }
|
61
|
+
_travis_option() {
|
62
|
+
case "${words[2]}" in
|
63
|
+
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");;
|
64
|
+
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");;
|
65
|
+
cancel) 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");;
|
66
|
+
console) reply=("--help" "-h" "--interactive" "--no-interactive" "-i" "--explode" "--no-explode" "-E" "--skip-version-check" "--api-endpoint" "-e" "--pro" "--org" "--staging" "--token" "-t" "--debug" "--adapter");;
|
67
|
+
disable) 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");;
|
68
|
+
enable) 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" "--skip-sync" "-s");;
|
69
|
+
encrypt) 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" "--add" "-a" "--split" "--no-split" "-s" "--append" "-p" "--override" "-x");;
|
70
|
+
endpoint) reply=("--help" "-h" "--interactive" "--no-interactive" "-i" "--explode" "--no-explode" "-E" "--skip-version-check" "--api-endpoint" "-e" "--pro" "--org" "--staging" "--token" "-t" "--debug" "--adapter" "--drop-default" "--set-default" "--github");;
|
71
|
+
help) reply=("--help" "-h" "--interactive" "--no-interactive" "-i" "--explode" "--no-explode" "-E" "--skip-version-check");;
|
72
|
+
history) 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" "--after" "-a" "--pull-request" "-p" "--branch" "-b" "--limit" "-l" "--all" "--no-all");;
|
73
|
+
init) 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" "--skip-sync" "-s" "--force" "-f" "--skip-enable" "-k" "--print-conf" "-p" "--script" "--before-script" "--after-script" "--after-success" "--install" "--before-install" "--compiler" "--otp-release" "--go" "--jdk" "--node-js" "--perl" "--php" "--python" "--rvm" "--scala" "--env" "--gemfile");;
|
74
|
+
login) reply=("--help" "-h" "--interactive" "--no-interactive" "-i" "--explode" "--no-explode" "-E" "--skip-version-check" "--api-endpoint" "-e" "--pro" "--org" "--staging" "--token" "-t" "--debug" "--adapter" "--github-token" "--auto");;
|
75
|
+
logs) 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");;
|
76
|
+
monitor) reply=("--help" "-h" "--interactive" "--no-interactive" "-i" "--explode" "--no-explode" "-E" "--skip-version-check" "--api-endpoint" "-e" "--pro" "--org" "--staging" "--token" "-t" "--debug" "--adapter" "--my-repos" "-m" "--repo" "-r" "--notify" "--no-notify" "-n");;
|
77
|
+
open) 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" "--github" "-g" "--print" "-p");;
|
78
|
+
pubkey) 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" "--pem" "--no-pem" "-p");;
|
79
|
+
raw) reply=("--help" "-h" "--interactive" "--no-interactive" "-i" "--explode" "--no-explode" "-E" "--skip-version-check" "--api-endpoint" "-e" "--pro" "--org" "--staging" "--token" "-t" "--debug" "--adapter" "--json" "--no-json");;
|
80
|
+
restart) 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");;
|
81
|
+
setup) 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" "--force" "-f");;
|
82
|
+
show) 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");;
|
83
|
+
status) 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" "--exit-code" "--no-exit-code" "-x" "--quiet" "--no-quiet" "-q" "--fail-pending" "--no-fail-pending" "-p");;
|
84
|
+
sync) reply=("--help" "-h" "--interactive" "--no-interactive" "-i" "--explode" "--no-explode" "-E" "--skip-version-check" "--api-endpoint" "-e" "--pro" "--org" "--staging" "--token" "-t" "--debug" "--adapter" "--check" "-c" "--background" "-b" "--force" "-f");;
|
85
|
+
token) reply=("--help" "-h" "--interactive" "--no-interactive" "-i" "--explode" "--no-explode" "-E" "--skip-version-check" "--api-endpoint" "-e" "--pro" "--org" "--staging" "--token" "-t" "--debug" "--adapter");;
|
86
|
+
version) reply=("--help" "-h" "--interactive" "--no-interactive" "-i" "--explode" "--no-explode" "-E" "--skip-version-check");;
|
87
|
+
whatsup) reply=("--help" "-h" "--interactive" "--no-interactive" "-i" "--explode" "--no-explode" "-E" "--skip-version-check" "--api-endpoint" "-e" "--pro" "--org" "--staging" "--token" "-t" "--debug" "--adapter" "--my-repos" "-m");;
|
88
|
+
whoami) reply=("--help" "-h" "--interactive" "--no-interactive" "-i" "--explode" "--no-explode" "-E" "--skip-version-check" "--api-endpoint" "-e" "--pro" "--org" "--staging" "--token" "-t" "--debug" "--adapter");;
|
89
|
+
esac
|
90
|
+
}
|
91
|
+
elif type complete 1>/dev/null 2>/dev/null; then
|
92
|
+
complete -F _travis travis
|
93
|
+
_travis() { _travis_complete "$COMP_CWORD" "${COMP_WORDS[1]}"; }
|
94
|
+
_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]}") ); }
|
95
|
+
_travis_setup() { COMPREPLY=( $(compgen -W "cloudcontrol cloudfoundry engineyard heroku nodejitsu openshift rubygems sauce_connect" -- "${COMP_WORDS[COMP_CWORD]}") ); }
|
96
|
+
_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]}") ); }
|
97
|
+
_travis_option() {
|
98
|
+
local options
|
99
|
+
case "${COMP_WORDS[1]}" in
|
100
|
+
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";;
|
101
|
+
branches) options="--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";;
|
102
|
+
cancel) options="--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";;
|
103
|
+
console) options="--help -h --interactive --no-interactive -i --explode --no-explode -E --skip-version-check --api-endpoint -e --pro --org --staging --token -t --debug --adapter";;
|
104
|
+
disable) options="--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";;
|
105
|
+
enable) options="--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 --skip-sync -s";;
|
106
|
+
encrypt) options="--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 --add -a --split --no-split -s --append -p --override -x";;
|
107
|
+
endpoint) options="--help -h --interactive --no-interactive -i --explode --no-explode -E --skip-version-check --api-endpoint -e --pro --org --staging --token -t --debug --adapter --drop-default --set-default --github";;
|
108
|
+
help) options="--help -h --interactive --no-interactive -i --explode --no-explode -E --skip-version-check";;
|
109
|
+
history) options="--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 --after -a --pull-request -p --branch -b --limit -l --all --no-all";;
|
110
|
+
init) options="--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 --skip-sync -s --force -f --skip-enable -k --print-conf -p --script --before-script --after-script --after-success --install --before-install --compiler --otp-release --go --jdk --node-js --perl --php --python --rvm --scala --env --gemfile";;
|
111
|
+
login) options="--help -h --interactive --no-interactive -i --explode --no-explode -E --skip-version-check --api-endpoint -e --pro --org --staging --token -t --debug --adapter --github-token --auto";;
|
112
|
+
logs) options="--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";;
|
113
|
+
monitor) options="--help -h --interactive --no-interactive -i --explode --no-explode -E --skip-version-check --api-endpoint -e --pro --org --staging --token -t --debug --adapter --my-repos -m --repo -r --notify --no-notify -n";;
|
114
|
+
open) options="--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 --github -g --print -p";;
|
115
|
+
pubkey) options="--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 --pem --no-pem -p";;
|
116
|
+
raw) options="--help -h --interactive --no-interactive -i --explode --no-explode -E --skip-version-check --api-endpoint -e --pro --org --staging --token -t --debug --adapter --json --no-json";;
|
117
|
+
restart) options="--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";;
|
118
|
+
setup) options="--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 --force -f";;
|
119
|
+
show) options="--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";;
|
120
|
+
status) options="--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 --exit-code --no-exit-code -x --quiet --no-quiet -q --fail-pending --no-fail-pending -p";;
|
121
|
+
sync) options="--help -h --interactive --no-interactive -i --explode --no-explode -E --skip-version-check --api-endpoint -e --pro --org --staging --token -t --debug --adapter --check -c --background -b --force -f";;
|
122
|
+
token) options="--help -h --interactive --no-interactive -i --explode --no-explode -E --skip-version-check --api-endpoint -e --pro --org --staging --token -t --debug --adapter";;
|
123
|
+
version) options="--help -h --interactive --no-interactive -i --explode --no-explode -E --skip-version-check";;
|
124
|
+
whatsup) options="--help -h --interactive --no-interactive -i --explode --no-explode -E --skip-version-check --api-endpoint -e --pro --org --staging --token -t --debug --adapter --my-repos -m";;
|
125
|
+
whoami) options="--help -h --interactive --no-interactive -i --explode --no-explode -E --skip-version-check --api-endpoint -e --pro --org --staging --token -t --debug --adapter";;
|
126
|
+
esac
|
127
|
+
COMPREPLY=( $(compgen -W "$options" -- "${COMP_WORDS[COMP_CWORD]}") )
|
128
|
+
}
|
1378
129
|
fi
|