summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Bock <christopher@bocki.com>2025-11-15 01:00:10 +0100
committerOliver Kiddle <opk@zsh.org>2025-11-17 04:46:18 +0100
commit86c10430437a1967b9d9b6a55a7e47477cff448a (patch)
treed117e6b2cd7e9d32d043ed481864d2803473e3ad
parent54084: use _numbers for whence -x (diff)
downloadzsh-86c10430437a1967b9d9b6a55a7e47477cff448a.tar
zsh-86c10430437a1967b9d9b6a55a7e47477cff448a.tar.gz
zsh-86c10430437a1967b9d9b6a55a7e47477cff448a.tar.bz2
zsh-86c10430437a1967b9d9b6a55a7e47477cff448a.tar.lz
zsh-86c10430437a1967b9d9b6a55a7e47477cff448a.tar.xz
zsh-86c10430437a1967b9d9b6a55a7e47477cff448a.tar.zst
zsh-86c10430437a1967b9d9b6a55a7e47477cff448a.zip
54080 (tweaked): update tags in bts completion
-rw-r--r--ChangeLog3
-rw-r--r--Completion/Debian/Command/_bts24
2 files changed, 15 insertions, 12 deletions
diff --git a/ChangeLog b/ChangeLog
index d85472851..1527f00c9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2025-11-17 Oliver Kiddle <opk@zsh.org>
+ * Christopher Bock: 54080 (tweaked): Completion/Debian/Command/_bts:
+ update tags in bts completion
+
* Christopher Bock: 54084: Completion/Zsh/Command/_which: use
_numbers for whence -x
diff --git a/Completion/Debian/Command/_bts b/Completion/Debian/Command/_bts
index 70b95ef96..8355474bc 100644
--- a/Completion/Debian/Command/_bts
+++ b/Completion/Debian/Command/_bts
@@ -2,6 +2,16 @@
local expl first=1
+local -a tags
+tags=(patch wontfix moreinfo unreproducible help security upstream pending
+ confirmed ipv6 lfs d-i l10n newcomer a11y ftbfs fixed-upstream fixed
+ fixed-in-experimental potato woody sarge etch lenny squeeze wheezy
+ jessie stretch buster bullseye bookworm trixie forky duke sid
+ experimental sarge-ignore etch-ignore lenny-ignore squeeze-ignore
+ wheezy-ignore jessie-ignore stretch-ignore buster-ignore
+ bullseye-ignore bookworm-ignore trixie-ignore forky-ignore
+ duke-ignore)
+
_arguments -A "-*" \
'(-o --offline)'{-o,--offline}'[use cached bugs]' \
'(--online --no-offline)'{--online,--no-offline}'[do not use cached bugs]' \
@@ -92,19 +102,9 @@ case "$words[1]" in
elif [[ CURRENT -eq 3 ]]; then
_wanted operator expl 'operator' compadd - '+' '-' '='
elif [[ CURRENT -eq 4 ]]; then
- _wanted tag expl 'tag' \
- compadd patch wontfix moreinfo unreproducible help pending \
- fixed security upstream confirmed fixed-upstream \
- fixed-in-experimental d-i ipv6 lfs l10n potato woody sarge \
- sarge-ignore etch etch-ignore lenny lenny-ignore squeeze \
- squeeze-ignore wheezy wheezy-ignore sid experimental
+ _wanted tags expl 'tag' compadd -a tags
else
- _wanted tag expl 'tag' \
- compadd patch wontfix moreinfo unreproducible help pending \
- fixed security upstream confirmed fixed-upstream \
- fixed-in-experimental d-i ipv6 lfs l10n potato woody sarge \
- sarge-ignore etch etch-ignore lenny lenny-ignore squeeze \
- squeeze-ignore wheezy wheezy-ignore sid experimental
+ _wanted tags expl 'tag' compadd -a tags
_wanted sep expl 'separator' compadd -S ' ' , .
fi
;;