zsh-workers
 help / color / mirror / code / Atom feed
From: Clint Adams <schizo@debian.org>
To: Ansgar Burchardt <ansgar@2008.43-1.org>, 503575@bugs.debian.org
Cc: zsh-workers@sunsite.dk
Subject: Re: Bug#503575: zsh: improvements for "bts" completion
Date: Sun, 26 Oct 2008 19:32:54 +0000	[thread overview]
Message-ID: <20081026193254.GA7811@scru.org> (raw)
In-Reply-To: <20081026183550.7426.18125.reportbug@blight.43-1.org>

On Sun, Oct 26, 2008 at 07:35:50PM +0100, Ansgar Burchardt wrote:
> There is no completion for the bts commands subscribe and unsubscribe
> yet.  Also the "owner" command does only accept a single bug number
> (running "bts --no-action owner 1 2 3" gives an error).
> 
> The attached patches should solve these problems.

Thanks, Ansgar.  I've forward-ported your changes to CVS HEAD:

Index: Completion/Debian/Command/_bts
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Debian/Command/_bts,v
retrieving revision 1.10
diff -u -r1.10 _bts
--- Completion/Debian/Command/_bts	4 Oct 2008 18:25:44 -0000	1.10
+++ Completion/Debian/Command/_bts	26 Oct 2008 19:31:17 -0000
@@ -25,7 +25,8 @@
   _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 claim unclaim
+      package owner noowner reportspam cache cleancache claim unclaim \
+      subscribe unsubscribe
   return
 fi
 
@@ -125,7 +126,7 @@
      _wanted sep expl 'separator' compadd -S ' ' , .
     fi
   ;;
-  (submitter|owner)
+  (submitter)
     if [[ CURRENT -eq 2 ]]; then
       _message -e bugnum 'bug number'
     else
@@ -135,6 +136,17 @@
        'bang:bang:compadd \!'
     fi
   ;;
+  (owner|subscribe|unsubscribe)
+    if [[ CURRENT -eq 2 ]]; then
+      _message -e bugnum 'bug number'
+    elif [[ CURRENT -eq 3 ]]; then
+      _alternative \
+        'email:email address:_email_addresses -c' \
+        'bang:bang:compadd \!'
+    else
+      _wanted sep expl 'separator' compadd -S ' ' , .
+    fi
+  ;;
   (found|notfound)
     if [[ CURRENT -eq 2 ]]; then
       _message -e bugnum 'bug number'


           reply	other threads:[~2008-10-26 19:33 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <20081026183550.7426.18125.reportbug@blight.43-1.org>]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20081026193254.GA7811@scru.org \
    --to=schizo@debian.org \
    --cc=503575@bugs.debian.org \
    --cc=ansgar@2008.43-1.org \
    --cc=zsh-workers@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).