about summary refs log tree commit diff
path: root/Completion/Debian/Command/_dchroot-dsa
diff options
context:
space:
mode:
Diffstat (limited to 'Completion/Debian/Command/_dchroot-dsa')
-rw-r--r--Completion/Debian/Command/_dchroot-dsa27
1 files changed, 27 insertions, 0 deletions
diff --git a/Completion/Debian/Command/_dchroot-dsa b/Completion/Debian/Command/_dchroot-dsa
new file mode 100644
index 000000000..7eeb1371d
--- /dev/null
+++ b/Completion/Debian/Command/_dchroot-dsa
@@ -0,0 +1,27 @@
+#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 tag expl 'chroot' \
+	compadd ${(os:,:)${${${"$(dchroot -l)"#Available chroots: }/\[*\]/}//[  
+]/}}
+	;;
+esac