_pod
23434 bytes
1#compdef pod
2#autoload
3# setopt XTRACE VERBOSE
4# vim: ft=zsh sw=2 ts=2 et
5
6
7# -----------------------------------------------------------------------------
8# FILE: _pod
9# DESCRIPTION: CocoaPods (0.33.1) autocomplete plugin for Oh-My-Zsh
10# https://cocoapods.org
11# Generated with `pod --completion-script
12# AUTHOR: Alexandre Joly (alexandre.joly@mekanics.ch)
13# GITHUB: https://github.com/mekanics
14# TWITTER: @jolyAlexandre
15# VERSION: 0.0.5
16# -----------------------------------------------------------------------------
17
18local -a _subcommands
19local -a _options
20
21case "$words[2]" in
22 help)
23 case "$words[3]" in
24 *) # pod help
25 _options=(
26 "--help:Show help banner of specified command"
27 "--no-ansi:Show output without ANSI codes"
28 "--silent:Show nothing"
29 "--verbose:Show more debugging information"
30 )
31 _describe -t options "pod help options" _options
32 ;;
33 esac
34 ;;
35 ipc)
36 case "$words[3]" in
37 list)
38 case "$words[4]" in
39 *) # pod ipc list
40 _options=(
41 "--help:Show help banner of specified command"
42 "--no-ansi:Show output without ANSI codes"
43 "--silent:Show nothing"
44 "--verbose:Show more debugging information"
45 )
46 _describe -t options "pod ipc list options" _options
47 ;;
48 esac
49 ;;
50 podfile)
51 case "$words[4]" in
52 *) # pod ipc podfile
53 _options=(
54 "--help:Show help banner of specified command"
55 "--no-ansi:Show output without ANSI codes"
56 "--silent:Show nothing"
57 "--verbose:Show more debugging information"
58 )
59 _describe -t options "pod ipc podfile options" _options
60 ;;
61 esac
62 ;;
63 repl)
64 case "$words[4]" in
65 *) # pod ipc repl
66 _options=(
67 "--help:Show help banner of specified command"
68 "--no-ansi:Show output without ANSI codes"
69 "--silent:Show nothing"
70 "--verbose:Show more debugging information"
71 )
72 _describe -t options "pod ipc repl options" _options
73 ;;
74 esac
75 ;;
76 spec)
77 case "$words[4]" in
78 *) # pod ipc spec
79 _options=(
80 "--help:Show help banner of specified command"
81 "--no-ansi:Show output without ANSI codes"
82 "--silent:Show nothing"
83 "--verbose:Show more debugging information"
84 )
85 _describe -t options "pod ipc spec options" _options
86 ;;
87 esac
88 ;;
89 update-search-index)
90 case "$words[4]" in
91 *) # pod ipc update-search-index
92 _options=(
93 "--help:Show help banner of specified command"
94 "--no-ansi:Show output without ANSI codes"
95 "--silent:Show nothing"
96 "--verbose:Show more debugging information"
97 )
98 _describe -t options "pod ipc update-search-index options" _options
99 ;;
100 esac
101 ;;
102 *) # pod ipc
103 _subcommands=(
104 "list:Lists the specifications known to CocoaPods."
105 "podfile:Converts a Podfile to YAML."
106 "repl:The repl listens to commands on standard input."
107 "spec:Converts a podspec to JSON."
108 "update-search-index:Updates the search index."
109 )
110 _describe -t commands "pod ipc subcommands" _subcommands
111 _options=(
112 "--help:Show help banner of specified command"
113 "--no-ansi:Show output without ANSI codes"
114 "--silent:Show nothing"
115 "--verbose:Show more debugging information"
116 )
117 _describe -t options "pod ipc options" _options
118 ;;
119 esac
120 ;;
121 init)
122 case "$words[3]" in
123 *) # pod init
124 _options=(
125 "--help:Show help banner of specified command"
126 "--no-ansi:Show output without ANSI codes"
127 "--silent:Show nothing"
128 "--verbose:Show more debugging information"
129 )
130 _describe -t options "pod init options" _options
131 ;;
132 esac
133 ;;
134 install)
135 case "$words[3]" in
136 *) # pod install
137 _options=(
138 "--help:Show help banner of specified command"
139 "--no-ansi:Show output without ANSI codes"
140 "--no-clean:Leave SCM dirs like \`.git\` and \`.svn\` intact after downloading"
141 "--no-integrate:Skip integration of the Pods libraries in the Xcode project(s)"
142 "--no-repo-update:Skip running \`pod repo update\` before install"
143 "--silent:Show nothing"
144 "--verbose:Show more debugging information"
145 )
146 _describe -t options "pod install options" _options
147 ;;
148 esac
149 ;;
150 lib)
151 case "$words[3]" in
152 create)
153 case "$words[4]" in
154 *) # pod lib create
155 _options=(
156 "--help:Show help banner of specified command"
157 "--no-ansi:Show output without ANSI codes"
158 "--silent:Show nothing"
159 "--verbose:Show more debugging information"
160 )
161 _describe -t options "pod lib create options" _options
162 ;;
163 esac
164 ;;
165 lint)
166 case "$words[4]" in
167 *) # pod lib lint
168 _options=(
169 "--help:Show help banner of specified command"
170 "--no-ansi:Show output without ANSI codes"
171 "--no-clean:Lint leaves the build directory intact for inspection"
172 "--no-subspecs:Lint skips validation of subspecs"
173 "--only-errors:Lint validates even if warnings are present"
174 "--quick:Lint skips checks that would require to download and build the spec"
175 "--silent:Show nothing"
176 "--subspec=NAME:Lint validates only the given subspec"
177 "--verbose:Show more debugging information"
178 )
179 _describe -t options "pod lib lint options" _options
180 ;;
181 esac
182 ;;
183 *) # pod lib
184 _subcommands=(
185 "create:Creates a new Pod"
186 "lint:Validates a Pod"
187 )
188 _describe -t commands "pod lib subcommands" _subcommands
189 _options=(
190 "--help:Show help banner of specified command"
191 "--no-ansi:Show output without ANSI codes"
192 "--silent:Show nothing"
193 "--verbose:Show more debugging information"
194 )
195 _describe -t options "pod lib options" _options
196 ;;
197 esac
198 ;;
199 list)
200 case "$words[3]" in
201 new)
202 case "$words[4]" in
203 *) # pod list new
204 _options=(
205 "--help:Show help banner of specified command"
206 "--no-ansi:Show output without ANSI codes"
207 "--silent:Show nothing"
208 "--update:Run \`pod repo update\` before listing"
209 "--verbose:Show more debugging information"
210 )
211 _describe -t options "pod list new options" _options
212 ;;
213 esac
214 ;;
215 *) # pod list
216 _subcommands=(
217 "new:Lists pods introduced in the master spec-repo since the last check"
218 )
219 _describe -t commands "pod list subcommands" _subcommands
220 _options=(
221 "--help:Show help banner of specified command"
222 "--no-ansi:Show output without ANSI codes"
223 "--silent:Show nothing"
224 "--update:Run \`pod repo update\` before listing"
225 "--verbose:Show more debugging information"
226 )
227 _describe -t options "pod list options" _options
228 ;;
229 esac
230 ;;
231 outdated)
232 case "$words[3]" in
233 *) # pod outdated
234 _options=(
235 "--help:Show help banner of specified command"
236 "--no-ansi:Show output without ANSI codes"
237 "--no-repo-update:Skip running \`pod repo update\` before install"
238 "--silent:Show nothing"
239 "--verbose:Show more debugging information"
240 )
241 _describe -t options "pod outdated options" _options
242 ;;
243 esac
244 ;;
245 plugins)
246 case "$words[3]" in
247 create)
248 case "$words[4]" in
249 *) # pod plugins create
250 _options=(
251 "--help:Show help banner of specified command"
252 "--no-ansi:Show output without ANSI codes"
253 "--silent:Show nothing"
254 "--verbose:Show more debugging information"
255 )
256 _describe -t options "pod plugins create options" _options
257 ;;
258 esac
259 ;;
260 list)
261 case "$words[4]" in
262 *) # pod plugins list
263 _options=(
264 "--help:Show help banner of specified command"
265 "--no-ansi:Show output without ANSI codes"
266 "--verbose:Show more debugging information"
267 )
268 _describe -t options "pod plugins list options" _options
269 ;;
270 esac
271 ;;
272 search)
273 case "$words[4]" in
274 *) # pod plugins search
275 _options=(
276 "--full:Search by name, author, and description"
277 "--help:Show help banner of specified command"
278 "--no-ansi:Show output without ANSI codes"
279 "--verbose:Show more debugging information"
280 )
281 _describe -t options "pod plugins search options" _options
282 ;;
283 esac
284 ;;
285 *) # pod plugins
286 _subcommands=(
287 "create:Creates a new plugin"
288 "list:List all known plugins"
289 "search:Search for known plugins"
290 )
291 _describe -t commands "pod plugins subcommands" _subcommands
292 _options=(
293 "--help:Show help banner of specified command"
294 "--no-ansi:Show output without ANSI codes"
295 "--silent:Show nothing"
296 "--verbose:Show more debugging information"
297 )
298 _describe -t options "pod plugins options" _options
299 ;;
300 esac
301 ;;
302 push)
303 case "$words[3]" in
304 *) # pod push
305 _options=(
306 "--help:Show help banner of specified command"
307 "--no-ansi:Show output without ANSI codes"
308 "--silent:Show nothing"
309 "--verbose:Show more debugging information"
310 )
311 _describe -t options "pod push options" _options
312 ;;
313 esac
314 ;;
315 repo)
316 case "$words[3]" in
317 add)
318 case "$words[4]" in
319 *) # pod repo add
320 _options=(
321 "--help:Show help banner of specified command"
322 "--no-ansi:Show output without ANSI codes"
323 "--shallow:Create a shallow clone (fast clone, but no push capabilities)"
324 "--silent:Show nothing"
325 "--verbose:Show more debugging information"
326 )
327 _describe -t options "pod repo add options" _options
328 ;;
329 esac
330 ;;
331 lint)
332 case "$words[4]" in
333 *) # pod repo lint
334 _options=(
335 "--help:Show help banner of specified command"
336 "--no-ansi:Show output without ANSI codes"
337 "--only-errors:Lint presents only the errors"
338 "--silent:Show nothing"
339 "--verbose:Show more debugging information"
340 )
341 _describe -t options "pod repo lint options" _options
342 ;;
343 esac
344 ;;
345 push)
346 case "$words[4]" in
347 *) # pod repo push
348 _options=(
349 "--allow-warnings:Allows pushing even if there are warnings"
350 "--help:Show help banner of specified command"
351 "--local-only:Does not perform the step of pushing REPO to its remote"
352 "--no-ansi:Show output without ANSI codes"
353 "--silent:Show nothing"
354 "--verbose:Show more debugging information"
355 )
356 _describe -t options "pod repo push options" _options
357 ;;
358 esac
359 ;;
360 remove)
361 case "$words[4]" in
362 *) # pod repo remove
363 _options=(
364 "--help:Show help banner of specified command"
365 "--no-ansi:Show output without ANSI codes"
366 "--silent:Show nothing"
367 "--verbose:Show more debugging information"
368 )
369 _describe -t options "pod repo remove options" _options
370 ;;
371 esac
372 ;;
373 update)
374 case "$words[4]" in
375 *) # pod repo update
376 _options=(
377 "--help:Show help banner of specified command"
378 "--no-ansi:Show output without ANSI codes"
379 "--silent:Show nothing"
380 "--verbose:Show more debugging information"
381 )
382 _describe -t options "pod repo update options" _options
383 ;;
384 esac
385 ;;
386 *) # pod repo
387 _subcommands=(
388 "add:Add a spec repo."
389 "lint:Validates all specs in a repo."
390 "push:Push new specifications to a spec-repo"
391 "remove:Remove a spec repo"
392 "update:Update a spec repo."
393 )
394 _describe -t commands "pod repo subcommands" _subcommands
395 _options=(
396 "--help:Show help banner of specified command"
397 "--no-ansi:Show output without ANSI codes"
398 "--silent:Show nothing"
399 "--verbose:Show more debugging information"
400 )
401 _describe -t options "pod repo options" _options
402 ;;
403 esac
404 ;;
405 search)
406 case "$words[3]" in
407 *) # pod search
408 _options=(
409 "--full:Search by name, summary, and description"
410 "--help:Show help banner of specified command"
411 "--ios:Restricts the search to Pods supported on iOS"
412 "--no-ansi:Show output without ANSI codes"
413 "--osx:Restricts the search to Pods supported on OS X"
414 "--stats:Show additional stats (like GitHub watchers and forks)"
415 "--verbose:Show more debugging information"
416 "--web:Searches on cocoapods.org"
417 )
418 _describe -t options "pod search options" _options
419 ;;
420 esac
421 ;;
422 setup)
423 case "$words[3]" in
424 *) # pod setup
425 _options=(
426 "--help:Show help banner of specified command"
427 "--no-ansi:Show output without ANSI codes"
428 "--no-shallow:Clone full history so push will work"
429 "--push:Use this option to enable push access once granted"
430 "--silent:Show nothing"
431 "--verbose:Show more debugging information"
432 )
433 _describe -t options "pod setup options" _options
434 ;;
435 esac
436 ;;
437 spec)
438 case "$words[3]" in
439 cat)
440 case "$words[4]" in
441 *) # pod spec cat
442 _options=(
443 "--help:Show help banner of specified command"
444 "--no-ansi:Show output without ANSI codes"
445 "--show-all:Pick from all versions of the given podspec"
446 "--silent:Show nothing"
447 "--verbose:Show more debugging information"
448 )
449 _describe -t options "pod spec cat options" _options
450 ;;
451 esac
452 ;;
453 create)
454 case "$words[4]" in
455 *) # pod spec create
456 _options=(
457 "--help:Show help banner of specified command"
458 "--no-ansi:Show output without ANSI codes"
459 "--silent:Show nothing"
460 "--verbose:Show more debugging information"
461 )
462 _describe -t options "pod spec create options" _options
463 ;;
464 esac
465 ;;
466 edit)
467 case "$words[4]" in
468 *) # pod spec edit
469 _options=(
470 "--help:Show help banner of specified command"
471 "--no-ansi:Show output without ANSI codes"
472 "--show-all:Pick which spec to edit from all available versions of the given podspec"
473 "--silent:Show nothing"
474 "--verbose:Show more debugging information"
475 )
476 _describe -t options "pod spec edit options" _options
477 ;;
478 esac
479 ;;
480 lint)
481 case "$words[4]" in
482 *) # pod spec lint
483 _options=(
484 "--help:Show help banner of specified command"
485 "--no-ansi:Show output without ANSI codes"
486 "--no-clean:Lint leaves the build directory intact for inspection"
487 "--no-subspecs:Lint skips validation of subspecs"
488 "--only-errors:Lint validates even if warnings are present"
489 "--quick:Lint skips checks that would require to download and build the spec"
490 "--silent:Show nothing"
491 "--subspec=NAME:Lint validates only the given subspec"
492 "--verbose:Show more debugging information"
493 )
494 _describe -t options "pod spec lint options" _options
495 ;;
496 esac
497 ;;
498 which)
499 case "$words[4]" in
500 *) # pod spec which
501 _options=(
502 "--help:Show help banner of specified command"
503 "--no-ansi:Show output without ANSI codes"
504 "--show-all:Print all versions of the given podspec"
505 "--silent:Show nothing"
506 "--verbose:Show more debugging information"
507 )
508 _describe -t options "pod spec which options" _options
509 ;;
510 esac
511 ;;
512 *) # pod spec
513 _subcommands=(
514 "cat:Prints a spec file."
515 "create:Create spec file stub."
516 "edit:Edit a spec file."
517 "lint:Validates a spec file."
518 "which:Prints the path of the given spec."
519 )
520 _describe -t commands "pod spec subcommands" _subcommands
521 _options=(
522 "--help:Show help banner of specified command"
523 "--no-ansi:Show output without ANSI codes"
524 "--silent:Show nothing"
525 "--verbose:Show more debugging information"
526 )
527 _describe -t options "pod spec options" _options
528 ;;
529 esac
530 ;;
531 trunk)
532 case "$words[3]" in
533 add-owner)
534 case "$words[4]" in
535 *) # pod trunk add-owner
536 _options=(
537 "--help:Show help banner of specified command"
538 "--no-ansi:Show output without ANSI codes"
539 "--silent:Show nothing"
540 "--verbose:Show more debugging information"
541 )
542 _describe -t options "pod trunk add-owner options" _options
543 ;;
544 esac
545 ;;
546 me)
547 case "$words[4]" in
548 clean-sessions)
549 case "$words[5]" in
550 *) # pod trunk me clean-sessions
551 _options=(
552 "--all:Removes all your sessions, except for the current one"
553 "--help:Show help banner of specified command"
554 "--no-ansi:Show output without ANSI codes"
555 "--silent:Show nothing"
556 "--verbose:Show more debugging information"
557 )
558 _describe -t options "pod trunk me clean-sessions options" _options
559 ;;
560 esac
561 ;;
562 *) # pod trunk me
563 _subcommands=(
564 "clean-sessions:Remove sessions"
565 )
566 _describe -t commands "pod trunk me subcommands" _subcommands
567 _options=(
568 "--help:Show help banner of specified command"
569 "--no-ansi:Show output without ANSI codes"
570 "--silent:Show nothing"
571 "--verbose:Show more debugging information"
572 )
573 _describe -t options "pod trunk me options" _options
574 ;;
575 esac
576 ;;
577 push)
578 case "$words[4]" in
579 *) # pod trunk push
580 _options=(
581 "--allow-warnings:Allows push even if there are lint warnings"
582 "--help:Show help banner of specified command"
583 "--no-ansi:Show output without ANSI codes"
584 "--silent:Show nothing"
585 "--verbose:Show more debugging information"
586 )
587 _describe -t options "pod trunk push options" _options
588 ;;
589 esac
590 ;;
591 register)
592 case "$words[4]" in
593 *) # pod trunk register
594 _options=(
595 "--description=DESCRIPTION:An arbitrary description to easily identify your session later on."
596 "--help:Show help banner of specified command"
597 "--no-ansi:Show output without ANSI codes"
598 "--silent:Show nothing"
599 "--verbose:Show more debugging information"
600 )
601 _describe -t options "pod trunk register options" _options
602 ;;
603 esac
604 ;;
605 *) # pod trunk
606 _subcommands=(
607 "add-owner:Add an owner to a pod"
608 "me:Display information about your sessions"
609 "push:Publish a podspec"
610 "register:Manage sessions"
611 )
612 _describe -t commands "pod trunk subcommands" _subcommands
613 _options=(
614 "--help:Show help banner of specified command"
615 "--no-ansi:Show output without ANSI codes"
616 "--silent:Show nothing"
617 "--verbose:Show more debugging information"
618 )
619 _describe -t options "pod trunk options" _options
620 ;;
621 esac
622 ;;
623 try)
624 case "$words[3]" in
625 *) # pod try
626 _options=(
627 "--help:Show help banner of specified command"
628 "--no-ansi:Show output without ANSI codes"
629 "--silent:Show nothing"
630 "--verbose:Show more debugging information"
631 )
632 _describe -t options "pod try options" _options
633 ;;
634 esac
635 ;;
636 update)
637 case "$words[3]" in
638 *) # pod update
639 _options=(
640 "--help:Show help banner of specified command"
641 "--no-ansi:Show output without ANSI codes"
642 "--no-clean:Leave SCM dirs like \`.git\` and \`.svn\` intact after downloading"
643 "--no-integrate:Skip integration of the Pods libraries in the Xcode project(s)"
644 "--no-repo-update:Skip running \`pod repo update\` before install"
645 "--silent:Show nothing"
646 "--verbose:Show more debugging information"
647 )
648 _describe -t options "pod update options" _options
649 ;;
650 esac
651 ;;
652 *) # pod
653 _subcommands=(
654 "help:Show help for the given command."
655 "ipc:Inter-process communication"
656 "init:Generate a Podfile for the current directory."
657 "install:Install project dependencies"
658 "lib:Develop pods"
659 "list:List pods"
660 "outdated:Show outdated project dependencies"
661 "plugins:Show available CocoaPods plugins"
662 "push:Temporary alias for the \`pod repo push\` command"
663 "repo:Manage spec-repositories"
664 "search:Searches for pods"
665 "setup:Setup the CocoaPods environment"
666 "spec:Manage pod specs"
667 "trunk:Interact with the CocoaPods API (e.g. publishing new specs)"
668 "try:Try a Pod!"
669 "update:Update outdated project dependencies"
670 )
671 _describe -t commands "pod subcommands" _subcommands
672 _options=(
673 "--completion-script:Print the auto-completion script"
674 "--help:Show help banner of specified command"
675 "--no-ansi:Show output without ANSI codes"
676 "--silent:Show nothing"
677 "--verbose:Show more debugging information"
678 "--version:Show the version of the tool"
679 )
680 _describe -t options "pod options" _options
681 ;;
682esac