Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: _schroot
- X-seq: zsh-workers 22302
- From: Clint Adams <clint@xxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: PATCH: _schroot
- Date: Sun, 26 Feb 2006 11:43:14 -0500
- Mail-followup-to: zsh-workers@xxxxxxxxxx
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
Index: Completion/Debian/Command/_schroot
===================================================================
RCS file: Completion/Debian/Command/_schroot
diff -N Completion/Debian/Command/_schroot
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ Completion/Debian/Command/_schroot 26 Feb 2006 16:42:26 -0000
@@ -0,0 +1,34 @@
+#compdef schroot
+
+local expl context state line
+typeset -A opt_args
+
+_arguments \
+ '(-h --help)'{-h,--help}'[help]' \
+ '(-a --all)'{-a,--all}'[all chroots and active sessions]' \
+ '--all-chroots' \
+ '--all-sessions' \
+ '*'{-c,--chroot=}':chroot:->chroot' \
+ '(-u --user)'{-u,--user=}':user:_users' \
+ '(-l --list)'{-l,--list}'[list available chroots]' \
+ '(-i --info)'{-i,--info}'[print detailed information about specified chroots]' \
+ '--location[print location of specified chroots]' \
+ '--config[print configuration of specified chroots]' \
+ '(-p --preserve-environment)'{-p,--preserve-environment}'[preserve user environment within chroot]' \
+ '(-q --quiet)'{-q,--quiet}'[quiet]' \
+ '(-v --verbose)'{-v,--verbose}'[verbose]' \
+ '(-V --version)'{-V,--version}'[version]' \
+ '(-b --begin-session)'{-b,--begin-session}'[begin a session]' \
+ '--recover-session}[recover an existing session]' \
+ '(-e --end-session)'{-e,--end-session=}':session UUID:' \
+ '(-f --force)'{-f,--force}'[force a session operation]' \
+ '(-):command name: _command_names -e' \
+ '*::arguments: _normal' && return 0
+
+case "$state" in
+ (chroot)
+ _wanted tag expl 'chroot' \
+ compadd $(schroot -l)
+ ;;
+
+esac
Messages sorted by:
Reverse Date,
Date,
Thread,
Author