* PATCH: _schroot
@ 2006-02-26 16:43 Clint Adams
2006-02-27 2:06 ` Clint Adams
0 siblings, 1 reply; 2+ messages in thread
From: Clint Adams @ 2006-02-26 16:43 UTC (permalink / raw)
To: zsh-workers
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: PATCH: _schroot
2006-02-26 16:43 PATCH: _schroot Clint Adams
@ 2006-02-27 2:06 ` Clint Adams
0 siblings, 0 replies; 2+ messages in thread
From: Clint Adams @ 2006-02-27 2:06 UTC (permalink / raw)
To: zsh-workers
Oops.
Index: Completion/Debian/Command/_schroot
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Debian/Command/_schroot,v
retrieving revision 1.1
diff -u -r1.1 _schroot
--- Completion/Debian/Command/_schroot 26 Feb 2006 16:46:06 -0000 1.1
+++ Completion/Debian/Command/_schroot 27 Feb 2006 02:05:54 -0000
@@ -3,7 +3,7 @@
local expl context state line
typeset -A opt_args
-_arguments \
+_arguments -S \
'(-h --help)'{-h,--help}'[help]' \
'(-a --all)'{-a,--all}'[all chroots and active sessions]' \
'--all-chroots' \
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-02-27 2:06 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-02-26 16:43 PATCH: _schroot Clint Adams
2006-02-27 2:06 ` Clint Adams
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).