mirror of git://git.code.sf.net/p/zsh/code
25808: handle bts claim and unclaim subcommands.
This commit is contained in:
parent
d6b4fb1c3a
commit
56f47809d6
|
@ -1,3 +1,8 @@
|
|||
2008-10-04 Clint Adams <clint@zsh.org>
|
||||
|
||||
* 25808: Completion/Debian/Command/_bts: handle bts claim and
|
||||
unclaim subcommands.
|
||||
|
||||
2008-10-02 Peter Stephenson <pws@csr.com>
|
||||
|
||||
* unposted: Completion/Zsh/Context/_subscript: off-by-one
|
||||
|
|
|
@ -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 ' ' , .
|
||||
|
|
Loading…
Reference in New Issue