_pod 23 KB

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