zsh-workers
 help / color / mirror / code / Atom feed
* PATCH: _bts
@ 2002-07-24 15:45 Clint Adams
  0 siblings, 0 replies; 2+ messages in thread
From: Clint Adams @ 2002-07-24 15:45 UTC (permalink / raw)
  To: zsh-workers

Patch is from Christian Marillat with a typo correction.

Index: Completion/Debian/Command/_bts
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Debian/Command/_bts,v
retrieving revision 1.1
diff -u -r1.1 _bts
--- Completion/Debian/Command/_bts	30 Sep 2001 20:24:15 -0000	1.1
+++ Completion/Debian/Command/_bts	24 Jul 2002 15:40:57 -0000
@@ -77,11 +77,13 @@
 	 then
 	  _wanted tag expl 'tag' \
 	  compadd patch wontfix moreinfo unreproducible fixed \
-	          security potato woody sid
+	          security potato woody sid help pending upstream \
+		  sarge experimental
 	 else
 	  _wanted tag expl 'tag' \
 	  compadd patch wontfix moreinfo unreproducible fixed \
-	          security potato woody sid
+	          security potato woody sid help pending upstream \
+		  sarge experimental
 	  _wanted sep expl 'separator' compadd -S ' ' , .
 	 fi
 	;;


^ permalink raw reply	[flat|nested] 2+ messages in thread

* PATCH: _bts
@ 2001-09-30 20:19 Clint Adams
  0 siblings, 0 replies; 2+ messages in thread
From: Clint Adams @ 2001-09-30 20:19 UTC (permalink / raw)
  To: zsh-workers

This is completion for Joey Hess's bts script.

Index: Completion/Debian/Command/.distfiles
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Debian/Command/.distfiles,v
retrieving revision 1.3
diff -u -r1.3 .distfiles
--- Completion/Debian/Command/.distfiles	2001/05/28 19:23:02	1.3
+++ Completion/Debian/Command/.distfiles	2001/09/30 20:14:22
@@ -1,5 +1,5 @@
 DISTFILES_SRC='
 .distfiles
-_apt          _bug          _dpkg         _dpkg_source  _dupload
+_apt	_bts	_bug	_dpkg         _dpkg_source  _dupload
 _update-alternatives
 '
Index: Completion/Debian/Command/_bts
===================================================================
RCS file: _bts
diff -N _bts
--- /dev/null	Thu May 24 22:33:05 2001
+++ _bts	Sun Sep 30 13:14:22 2001
@@ -0,0 +1,116 @@
+#compdef bts
+local expl
+
+compset -N '[,.]' || compset -n 2
+
+if [[ CURRENT -eq 1 ]];
+then
+ _wanted cmd expl 'bts command' \
+ compadd show bugs close reopen retitle reassign merge unmerge tag \
+         severity forwarded notforwarded help
+else
+ case "$words[1]" in
+ 	show|close|unmerge|notforwarded)
+	 if [[ CURRENT -eq 2 ]];
+	 then
+	  _wanted bugnum expl 'bug number' compadd
+	 else
+	  _wanted sep expl 'separator' compadd -S ' ' , .
+	 fi
+	;;
+	bugs)
+	 if [[ CURRENT -eq 2 ]];
+	 then
+	  _wanted package expl 'package' _deb_packages avail
+	  _wanted maintainer expl 'package maintainer' compadd $DEBEMAIL
+	 fi
+	  _wanted sep expl 'separator' compadd -S ' ' , .
+	;;
+	reopen)
+	 if [[ CURRENT -eq 2 ]];
+	 then
+	  _wanted bugnum expl 'bug number' compadd
+	 elif [[ CURRENT -eq 3 ]];
+	 then
+	  _wanted submitter expl 'new submitter' compadd $DEBEMAIL
+	 else
+	  _wanted sep expl 'separator' compadd -S ' ' , .
+	 fi
+	;;
+	retitle)
+	 if [[ CURRENT -eq 2 ]];
+	 then
+	  _wanted bugnum expl 'bug number' compadd
+	 elif [[ CURRENT -eq 3 ]];
+	 then
+	  _wanted submitter expl 'new title' compadd
+	 else
+	  _wanted sep expl 'separator' compadd -S ' ' , .
+	 fi
+	;;
+	reassign)
+	 if [[ CURRENT -eq 2 ]];
+	 then
+	  _wanted bugnum expl 'bug number' compadd
+	 elif [[ CURRENT -eq 3 ]];
+	 then
+	  _wanted submitter expl 'new package' _deb_packages avail
+	 else
+	  _wanted sep expl 'separator' compadd -S ' ' , .
+	 fi
+	;;
+	merge)
+	 _wanted bugnum expl 'bug number' compadd
+	 if [[ CURRENT -gt 2 ]];
+	 then
+	  _wanted sep expl 'separator' compadd -S ' ' , .
+	 fi
+	;;
+	tag)
+	 if [[ CURRENT -eq 2 ]];
+	 then
+	  _wanted bugnum expl 'bug number' compadd
+	 elif [[ CURRENT -eq 3 ]];
+	 then
+	  _wanted operator expl 'operator' compadd - '+' '-' '='
+	 elif [[ CURRENT -eq 4 ]];
+	 then
+	  _wanted tag expl 'tag' \
+	  compadd patch wontfix moreinfo unreproducible fixed \
+	          security potato woody sid
+	 else
+	  _wanted tag expl 'tag' \
+	  compadd patch wontfix moreinfo unreproducible fixed \
+	          security potato woody sid
+	  _wanted sep expl 'separator' compadd -S ' ' , .
+	 fi
+	;;
+	severity)
+	 if [[ CURRENT -eq 2 ]];
+	 then
+	  _wanted bugnum expl 'bug number' compadd
+	 elif [[ CURRENT -eq 3 ]];
+	 then
+	  _wanted severity expl 'severity' \
+	  compadd wishlist minor normal serious important critical grave
+	 else
+	  _wanted sep expl 'separator' compadd -S ' ' , .
+	 fi
+	;;
+	forwarded)
+	 if [[ CURRENT -eq 2 ]];
+	 then
+	  _wanted bugnum expl 'bug number' compadd
+	 elif [[ CURRENT -eq 3 ]];
+	 then
+	  _wanted upstream expl 'upstream email' compadd
+	 else
+	  _wanted sep expl 'separator' compadd -S ' ' , .
+	 fi
+	;;
+	help)
+	;&
+	*) _wanted sep expl 'separator' compadd -S ' ' , .
+	;;
+ esac
+fi


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-07-24 15:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-07-24 15:45 PATCH: _bts Clint Adams
  -- strict thread matches above, loose matches on Subject: below --
2001-09-30 20:19 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).