Skip to content

Commit

Permalink
#5 Play: Use $service
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoulaj committed Aug 21, 2011
1 parent 86ffc82 commit 531ace1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _play
Expand Up @@ -175,14 +175,14 @@ _play_apps() {
}

_play_modules() {
local modules; modules=(${(ps:,:)${${${(S)${(f)$(_call_program modules play list-modules)}//\]*\[/,}%%\]*}##*\[}})
local modules; modules=(${(ps:,:)${${${(S)${(f)$(_call_program modules $service list-modules)}//\]*\[/,}%%\]*}##*\[}})
_describe -t modules 'Play! module' modules "$@"
}

_play_modules_dash_versions() {
local ret=1
if compset -P '*-'; then
local versions; versions=(${(ps:,:)${${${${${(f)$(_call_program versions play list-modules)}##*${IPREFIX%-}\]}#*Versions:}%%"~"*}//[[:space:]]/}})
local versions; versions=(${(ps:,:)${${${${${(f)$(_call_program versions $service list-modules)}##*${IPREFIX%-}\]}#*Versions:}%%"~"*}//[[:space:]]/}})
_describe -t module-versions "${IPREFIX%-} module versions" versions && ret=0
else
_wanted modules expl 'Play! module' _play_modules -qS- && ret=0
Expand Down

0 comments on commit 531ace1

Please sign in to comment.