Skip to content

Commit

Permalink
pod-list
Browse files Browse the repository at this point in the history
pod-lib removed. whyever I described it...
  • Loading branch information
mekanics committed Jul 5, 2013
1 parent cf5ca2f commit 1d636fe
Showing 1 changed file with 23 additions and 3 deletions.
26 changes: 23 additions & 3 deletions plugins/pod/_pod
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ _1st_arguments=(
'help:Show help for the given command.'
'install:Install project dependencies'
'ipc:Inter-process communication'
'lib:Develop pods'
'list:List pods'
'outdated:Show outdated project dependencies'
'podfile-info:Shows information on installed Pods'
Expand Down Expand Up @@ -77,7 +76,7 @@ __first_command_list ()
local expl
declare -a tasks

tasks=(install ipc lib list outdated podfile-info push repo search setup spec update)
tasks=(install ipc list outdated podfile-info push repo search setup spec update)

_wanted tasks expl 'help' compadd $tasks
}
Expand Down Expand Up @@ -152,6 +151,27 @@ __pod-ipc() {
esac
}

__pod-list() {
local curcontext="$curcontext" state line
typeset -A opt_args

_arguments -C \
':command:->command' \
'*::options:->options'

case $state in
(command)
_describe -t commands "gem subcommand" _list_arguments
return
;;

(options)
#todo
return
;;
esac
}



local expl
Expand Down Expand Up @@ -192,7 +212,7 @@ case $state in
__pod-list
;;

(install|lib|outdated|podfile-info|push|search|setup|update)
(install|outdated|podfile-info|push|search|setup|update)
#_arguments ':feature:__repo_list'
esac
;;
Expand Down

0 comments on commit 1d636fe

Please sign in to comment.