1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-02 10:01:11 +02:00
zsh/Completion/Debian/Command/_dchroot-dsa
2014-10-21 20:53:51 +02:00

26 lines
1,022 B
Text

#compdef dchroot-dsa
local expl context state line
typeset -A opt_args
_arguments -S \
'(-h --help)'{-h,--help}'[help]' \
'(-a --all)'{-a,--all}'[select all chroots]' \
'*'{-c,--chroot=}'[use specified chroot]:chroot:->chroot' \
'(-d --directory)'{-d,--directory=}'[directory to use]:dir:_files -W / -P /' \
'(-l --list)'{-l,--list}'[list available chroots]' \
'(-i --info)'{-i,--info}'[show information about selected chroots]' \
'(-p --listpaths)'{-p,--listpaths}'[print paths to available chroots]' \
'--config[dump configuration of selected chroots]' \
'(-q --quiet)'{-q,--quiet}'[quiet]' \
'(-v --verbose)'{-v,--verbose}'[verbose]' \
'(-V --version)'{-V,--version}'[version]' \
'(-):command name: _command_names -e' \
'*::arguments: _normal' && return 0
case "$state" in
chroot)
_wanted -C $context chroots expl 'chroot' \
compadd ${(os:,:)${${${"$(_call_program chroots dchroot -l )"#*: }// /}//[[\]]/,}}
;;
esac