9f5a895192b7d6b75ba717ef4e2c9b6ed7977c68

Author
Robby Russell <robby@planetargon.com>
Committer
Robby Russell <robby@planetargon.com>
Date

Message

Merge pull request #2084 from mekanics/update-pod-plugin

updated the arguments list to the newest version (0.27.1) of cocoapods

Diff

 1diff --git a/plugins/pod/_pod b/plugins/pod/_pod
 2index 563fa5e666459bee4c92bb588cbc8681be404c07..8c0f4460f7321f21202e16b9716deadf2d486b87 100644
 3--- a/plugins/pod/_pod
 4+++ b/plugins/pod/_pod
 5@@ -3,18 +3,19 @@
 6 
 7 # -----------------------------------------------------------------------------
 8 #          FILE:  _pod
 9-#   DESCRIPTION:  Cocoapods autocomplete plugin for Oh-My-Zsh
10+#   DESCRIPTION:  Cocoapods (0.27.1) autocomplete plugin for Oh-My-Zsh
11 #                 http://cocoapods.org
12 #        AUTHOR:  Alexandre Joly (alexandre.joly@mekanics.ch)
13 #        GITHUB:  https://github.com/mekanics
14 #       TWITTER:  @jolyAlexandre
15-#       VERSION:  0.0.1
16+#       VERSION:  0.0.3
17 #       LICENSE:  MIT
18 # -----------------------------------------------------------------------------
19 
20 local -a _1st_arguments
21 _1st_arguments=(
22-    'help:Show help for the given command.'
23+    'help:Show help for the given command'
24+    'init:Generate a Podfile for the current directory'
25     'install:Install project dependencies'
26     'ipc:Inter-process communication'
27     'list:List pods'
28@@ -32,6 +33,7 @@ local -a _repo_arguments
29 _repo_arguments=(
30     'add:Add a spec repo'
31     'lint:Validates all specs in a repo'
32+    'remove:Remove a spec repo.'
33     'update:Update a spec repo'
34 )
35 
36@@ -158,7 +160,7 @@ __first_command_list ()
37 }
38 
39 __repo_list() {
40-    _wanted application expl 'repo' compadd $(command ls -1 ~/.cocoapods 2>/dev/null | sed -e 's/ /\\ /g')
41+    _wanted application expl 'repo' compadd $(command ls -1 ~/.cocoapods/repos 2>/dev/null | sed -e 's/ /\\ /g')
42 }
43 
44 __pod-repo() {
45@@ -193,6 +195,12 @@ __pod-repo() {
46                 (add)
47                     _arguments \
48                         $_inherited_options
49+
50+                (remove)
51+                    _arguments \
52+                        $_inherited_options \
53+                        ':feature:__repo_list'
54+                ;;
55             esac
56         ;;
57     esac