fixed formatting; dead code deleted
This commit is contained in:
parent
2a5651f012
commit
e0c6769c93
@ -15,7 +15,7 @@ __task_list ()
|
|||||||
|
|
||||||
__box_list ()
|
__box_list ()
|
||||||
{
|
{
|
||||||
_wanted application expl 'hxlp' compadd $(command ls -1 $HOME/.vagrant/boxes 2>/dev/null| sed -e 's/ /\\ /g')
|
_wanted application expl 'command' compadd $(command ls -1 $HOME/.vagrant/boxes 2>/dev/null| sed -e 's/ /\\ /g')
|
||||||
}
|
}
|
||||||
|
|
||||||
__vagrant-box ()
|
__vagrant-box ()
|
||||||
@ -29,36 +29,21 @@ __vagrant-box ()
|
|||||||
|
|
||||||
case $state in
|
case $state in
|
||||||
(command)
|
(command)
|
||||||
|
|
||||||
# local -a subcommands
|
|
||||||
# subcommands=(
|
|
||||||
# 'start:Start a new release branch'
|
|
||||||
# 'finish:Finish a release branche.'
|
|
||||||
# 'list:List all your release branches. (Alias to `git flow release`)'
|
|
||||||
# )
|
|
||||||
# _describe -t commands 'git flow release' subcommands
|
|
||||||
# _arguments \
|
|
||||||
# -v'[Verbose (more) output]'
|
|
||||||
_describe -t commands "gem subcommand" _box_arguments
|
_describe -t commands "gem subcommand" _box_arguments
|
||||||
return
|
return
|
||||||
;;
|
;;
|
||||||
|
|
||||||
(options)
|
(options)
|
||||||
case $line[1] in
|
case $line[1] in
|
||||||
|
(repackage|remove)
|
||||||
(repackage)
|
|
||||||
_arguments \
|
_arguments \
|
||||||
-F'[Fetch from origin before performing finish]' \
|
-F'[Fetch from origin before performing finish]' \
|
||||||
-r'[Rebase instead of merge]'\
|
-r'[Rebase instead of merge]'\
|
||||||
':feature:__box_list'
|
':feature:__box_list'
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
local -a _1st_arguments
|
local -a _1st_arguments
|
||||||
@ -92,10 +77,6 @@ _box_arguments=(
|
|||||||
local expl
|
local expl
|
||||||
local -a boxes installed_boxes
|
local -a boxes installed_boxes
|
||||||
|
|
||||||
#_arguments \
|
|
||||||
# '(-v --version)'{-v,--version}'[show version]' \
|
|
||||||
# '(-h --help)'{-h,--help}'[show help]' \
|
|
||||||
# '*:: :->subcmds' && return 0
|
|
||||||
local curcontext="$curcontext" state line
|
local curcontext="$curcontext" state line
|
||||||
typeset -A opt_args
|
typeset -A opt_args
|
||||||
|
|
||||||
@ -104,34 +85,22 @@ local -a boxes installed_boxes
|
|||||||
'*::options:->options'
|
'*::options:->options'
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#echo $state
|
|
||||||
#echo -e "\n\n\n\n"
|
|
||||||
#echo $line[1]
|
|
||||||
|
|
||||||
case $state in
|
case $state in
|
||||||
|
|
||||||
(command)
|
(command)
|
||||||
|
|
||||||
_describe -t commands "gem subcommand" _1st_arguments
|
_describe -t commands "gem subcommand" _1st_arguments
|
||||||
return
|
return
|
||||||
;;
|
;;
|
||||||
|
|
||||||
(options)
|
(options)
|
||||||
|
|
||||||
case $line[1] in
|
case $line[1] in
|
||||||
|
|
||||||
(help)
|
(help)
|
||||||
_arguments \
|
_arguments \
|
||||||
-F'[Fetch from origin before performing finish]' \
|
-F'[Fetch from origin before performing finish]' \
|
||||||
-r'[Rebase instead of merge]'\
|
-r'[Rebase instead of merge]'\
|
||||||
':feature:__task_list'
|
':feature:__task_list'
|
||||||
|
|
||||||
;;
|
;;
|
||||||
|
|
||||||
(box)
|
(box)
|
||||||
|
|
||||||
__vagrant-box
|
__vagrant-box
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
Reference in New Issue
Block a user