about summary refs log tree commit diff
path: root/Completion/Debian/Command
diff options
context:
space:
mode:
authorClint Adams <clint@users.sourceforge.net>2008-10-04 18:25:44 +0000
committerClint Adams <clint@users.sourceforge.net>2008-10-04 18:25:44 +0000
commit56f47809d69dcbd545900e82490558856f11766a (patch)
tree673c6c15fab2f8e59b4f5e17438ed499af42ba16 /Completion/Debian/Command
parentd6b4fb1c3abacfdd9d9d8aa096f29f59a7ddae9d (diff)
downloadzsh-56f47809d69dcbd545900e82490558856f11766a.tar.gz
zsh-56f47809d69dcbd545900e82490558856f11766a.tar.xz
zsh-56f47809d69dcbd545900e82490558856f11766a.zip
25808: handle bts claim and unclaim subcommands.
Diffstat (limited to 'Completion/Debian/Command')
-rw-r--r--Completion/Debian/Command/_bts13
1 files changed, 12 insertions, 1 deletions
diff --git a/Completion/Debian/Command/_bts b/Completion/Debian/Command/_bts
index cf36e552a..71fa2dde7 100644
--- a/Completion/Debian/Command/_bts
+++ b/Completion/Debian/Command/_bts
@@ -25,7 +25,7 @@ if [[ CURRENT -eq 1 ]]; then
   _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 @@ case "$words[1]" in
        '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 ' ' , .