Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

PATCH: _bts claim/unclaim



Index: Completion/Debian/Command/_bts
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Debian/Command/_bts,v
retrieving revision 1.9
diff -u -r1.9 _bts
--- Completion/Debian/Command/_bts	6 Jul 2007 15:37:06 -0000	1.9
+++ Completion/Debian/Command/_bts	4 Oct 2008 18:10:39 -0000
@@ -25,7 +25,7 @@
   _wanted cmd expl 'bts command' compadd show bugs close reopen retitle \
       reassign merge unmerge tag tags severity forwarded notforwarded help \
       clone submitter found notfound block unblock user usertag usertags \
-      package owner noowner reportspam cache cleancache
+      package owner noowner reportspam cache cleancache claim unclaim
   return
 fi
 
@@ -193,6 +193,17 @@
        'email:email address:_email_addresses -c' \
        'all:all:compadd ALL'
   ;;
+  (claim|unclaim)
+    if [[ CURRENT -eq 2 ]]; then
+      _message -e bugnum 'bug number'
+    elif [[ CURRENT -eq 3 ]]; then
+      _alternative \
+        'email:email address:_email_addresses -c' \
+	'separator:separator:compadd -S " " , .'
+    else
+      _wanted sep expl 'separator' compadd -S ' ' , .
+    fi
+  ;;
   help)
   ;&
   *) _wanted sep expl 'separator' compadd -S ' ' , .



Messages sorted by: Reverse Date, Date, Thread, Author