App-AppSpec
view release on metacpan or search on metacpan
share/completion/zsh/_appspec view on Meta::CPAN
#compdef appspec
# Generated with perl module App::Spec v0.013
_appspec() {
local program=appspec
typeset -A opt_args
local curcontext="$curcontext" state line context
# ---- Command:
_arguments -s \
'1: :->cmd1' \
'*: :->args' \
&& ret=0
case $state in
cmd1)
_alternative 'args:cmd2:((completion\:"Generate completion for a specified spec file" help\:"Show command help" new\:"Create new app" pod\:"Generate pod" validate\:"Validate spec file"))'
;;
args)
case $line[1] in
_meta)
# ---- Command: _meta
_arguments -s -C \
'1: :->cmd1' \
'2: :->cmd2' \
'*: :->args' \
&& ret=0
case $state in
cmd2)
_alternative 'args:cmd3:((completion\:"Shell completion functions" pod\:"Pod documentation"))'
;;
args)
case $line[2] in
completion)
# ---- Command: _meta completion
_arguments -s -C \
'1: :->cmd1' \
'2: :->cmd2' \
'3: :->cmd3' \
'*: :->args' \
&& ret=0
case $state in
cmd3)
_alternative 'args:cmd4:((generate\:"Generate self completion"))'
;;
args)
case $line[3] in
generate)
# ---- Command: _meta completion generate
_arguments -s -C \
'1: :->cmd1' \
'2: :->cmd2' \
'3: :->cmd3' \
'--help[Show command help]' \
'-h[Show command help]' \
'--name[name of the program (optional, override name in spec)]:name' \
'--zsh[for zsh]' \
'--bash[for bash]' \
&& ret=0
;;
esac
;;
esac
share/completion/zsh/_appspec view on Meta::CPAN
args)
case $line[3] in
generate)
# ---- Command: _meta pod generate
_arguments -s -C \
'1: :->cmd1' \
'2: :->cmd2' \
'3: :->cmd3' \
'--help[Show command help]' \
'-h[Show command help]' \
&& ret=0
;;
esac
;;
esac
;;
esac
;;
esac
;;
completion)
# ---- Command: completion
_arguments -s -C \
'1: :->cmd1' \
'2: :->spec_file' \
'--help[Show command help]' \
'-h[Show command help]' \
'--name[name of the program (optional, override the value from the spec)]:name' \
'--zsh[for zsh]' \
'--bash[for bash]' \
&& ret=0
case $state in
spec_file)
_files
;;
esac
;;
help)
# ---- Command: help
_arguments -s -C \
'1: :->cmd1' \
'2: :->cmd2' \
'*: :->args' \
&& ret=0
case $state in
cmd2)
_alternative 'args:cmd3:((completion new pod validate))'
;;
args)
case $line[2] in
_meta)
# ---- Command: help _meta
_arguments -s -C \
'1: :->cmd1' \
'2: :->cmd2' \
'3: :->cmd3' \
'*: :->args' \
&& ret=0
case $state in
cmd3)
_alternative 'args:cmd4:((completion pod))'
;;
args)
case $line[3] in
completion)
# ---- Command: help _meta completion
_arguments -s -C \
'1: :->cmd1' \
'2: :->cmd2' \
'3: :->cmd3' \
'4: :->cmd4' \
'*: :->args' \
&& ret=0
case $state in
cmd4)
_alternative 'args:cmd5:((generate))'
;;
args)
case $line[4] in
generate)
# ---- Command: help _meta completion generate
_arguments -s -C \
'1: :->cmd1' \
'2: :->cmd2' \
'3: :->cmd3' \
'4: :->cmd4' \
'--help[Show command help]' \
'-h[Show command help]' \
'--all[]' \
&& ret=0
;;
esac
;;
share/completion/zsh/_appspec view on Meta::CPAN
'3: :->cmd3' \
'4: :->cmd4' \
'--help[Show command help]' \
'-h[Show command help]' \
'--all[]' \
&& ret=0
;;
esac
;;
esac
;;
esac
;;
esac
;;
completion)
# ---- Command: help completion
_arguments -s -C \
'1: :->cmd1' \
'2: :->cmd2' \
'--help[Show command help]' \
'-h[Show command help]' \
'--all[]' \
&& ret=0
;;
new)
# ---- Command: help new
_arguments -s -C \
'1: :->cmd1' \
'2: :->cmd2' \
'--help[Show command help]' \
'-h[Show command help]' \
'--all[]' \
&& ret=0
;;
pod)
# ---- Command: help pod
_arguments -s -C \
'1: :->cmd1' \
'2: :->cmd2' \
'--help[Show command help]' \
'-h[Show command help]' \
'--all[]' \
&& ret=0
;;
validate)
# ---- Command: help validate
_arguments -s -C \
'1: :->cmd1' \
'2: :->cmd2' \
'--help[Show command help]' \
'-h[Show command help]' \
'--all[]' \
&& ret=0
;;
esac
;;
esac
;;
new)
# ---- Command: new
_arguments -s -C \
'1: :->cmd1' \
'2: :->path' \
'--help[Show command help]' \
'-h[Show command help]' \
'--name[The (file) name of the app]:name' \
'-n[The (file) name of the app]:name' \
'--class[The main class name for your app implementation]:class' \
'-c[The main class name for your app implementation]:class' \
'--overwrite[Overwrite existing dist directory]' \
'-o[Overwrite existing dist directory]' \
'--with-subcommands[Create an app with subcommands]' \
'-s[Create an app with subcommands]' \
&& ret=0
case $state in
path)
_path_files -/
;;
esac
;;
pod)
# ---- Command: pod
_arguments -s -C \
'1: :->cmd1' \
'2: :->spec_file' \
'--help[Show command help]' \
'-h[Show command help]' \
&& ret=0
case $state in
spec_file)
_files
;;
esac
;;
validate)
# ---- Command: validate
_arguments -s -C \
'1: :->cmd1' \
'2: :->spec_file' \
'--help[Show command help]' \
'-h[Show command help]' \
'--color[output colorized]' \
'-C[output colorized]' \
&& ret=0
case $state in
spec_file)
_files
;;
esac
;;
esac
;;
esac
}
__appspec_dynamic_comp() {
local argname="$1"
local arg="$2"
local comp="arg:$argname:(("
local line
while read -r line; do
local name="$line"
local desc="$line"
name="${name%$'\t'*}"
desc="${desc/*$'\t'}"
comp="$comp$name"
if [[ -n "$desc" && "$name" != "$desc" ]]; then
comp="$comp\\:"'"'"$desc"'"'
fi
comp="$comp "
done <<< "$arg"
comp="$comp))"
_alternative "$comp"
}
( run in 0.392 second using v1.01-cache-2.11-cpan-140bd7fdf52 )