zsh-workers
 help / color / mirror / code / Atom feed
* PATCH: _postfix (simple and incomplete)
@ 2004-12-24 19:48 Clint Adams
  0 siblings, 0 replies; only message in thread
From: Clint Adams @ 2004-12-24 19:48 UTC (permalink / raw)
  To: zsh-workers

This is just so I can get completions for "postsuper -d".
Even that could use improvement.

Index: Completion/Unix/Command/_postfix
===================================================================
RCS file: Completion/Unix/Command/_postfix
diff -N Completion/Unix/Command/_postfix
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ Completion/Unix/Command/_postfix	24 Dec 2004 19:46:52 -0000
@@ -0,0 +1,20 @@
+#compdef postsuper
+
+_postfix_queue_id() {
+compadd ${${(M)${(f)"$(postqueue -p)"}:#(#s)([0-9A-F]##)*}/(#s)(#b)([0-9A-F]##)*/$match[1]}
+}
+
+case $service in
+	(postsuper)
+	_arguments -C \
+	'-p[purge old tempfiles]' \
+	'-s[structure check and repair]' \
+	'-v[verbose]' \
+	'-c[configdir]:config dir:_files -/' \
+	'-d[delete]:queue id:_postfix_queue_id' \
+	'-h[hold]:queue id:_postfix_queue_id' \
+	'-H[release]:queue id:_postfix_queue_id' \
+	'-r[requeue]:queue id:_postfix_queue_id' \
+	'1:queue:(hold incoming active deferred)'
+	;;
+esac


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-12-24 19:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-12-24 19:48 PATCH: _postfix (simple and incomplete) 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).