mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-04 20:40:57 +02:00
25424: Completion/Debian/Command/_lintian: completion for lintian-info.
This commit is contained in:
parent
8db0e396c9
commit
fd487a01ce
2 changed files with 69 additions and 35 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2008-08-08 Clint Adams <clint@zsh.org>
|
||||||
|
|
||||||
|
* 25424: Chris Lamb: Completion/Debian/Command/_lintian:
|
||||||
|
completion for lintian-info.
|
||||||
|
|
||||||
2008-08-07 Clint Adams <clint@zsh.org>
|
2008-08-07 Clint Adams <clint@zsh.org>
|
||||||
|
|
||||||
* 25423: Chris Lamb: Completion/Debian/Command/.distfiles,
|
* 25423: Chris Lamb: Completion/Debian/Command/.distfiles,
|
||||||
|
|
|
@ -1,5 +1,9 @@
|
||||||
#compdef lintian
|
#compdef lintian lintian-info
|
||||||
|
|
||||||
|
local line cmds ret=1
|
||||||
|
|
||||||
|
case "$service" in
|
||||||
|
(lintian)
|
||||||
_arguments -s \
|
_arguments -s \
|
||||||
'(-c -r -u -C -R -S -X --check --check-part --dont-check-part --remove --remove-lab --setup-lab --unpack)'{-S,--setup-lab}'[setup or update the laboratory]' \
|
'(-c -r -u -C -R -S -X --check --check-part --dont-check-part --remove --remove-lab --setup-lab --unpack)'{-S,--setup-lab}'[setup or update the laboratory]' \
|
||||||
'(-c -r -u -C -R -S -X --check --check-part --dont-check-part --remove --remove-lab --setup-lab --unpack)'{-R,--remove-lab}'[remove the laboratory directory]' \
|
'(-c -r -u -C -R -S -X --check --check-part --dont-check-part --remove --remove-lab --setup-lab --unpack)'{-R,--remove-lab}'[remove the laboratory directory]' \
|
||||||
|
@ -34,3 +38,28 @@ _arguments -s \
|
||||||
'--udeb[the following packages are udebs]' \
|
'--udeb[the following packages are udebs]' \
|
||||||
'(-p --packages-file)'{-p,--packages-file}'[process packages listed in file]:list:_files' \
|
'(-p --packages-file)'{-p,--packages-file}'[process packages listed in file]:list:_files' \
|
||||||
':package:_files -g "*.(changes|deb|dsc)"'
|
':package:_files -g "*.(changes|deb|dsc)"'
|
||||||
|
;;
|
||||||
|
|
||||||
|
(lintian-info)
|
||||||
|
_arguments -C '1: :->cmds' '*: :->args' && ret=0
|
||||||
|
|
||||||
|
case $state in
|
||||||
|
(cmds)
|
||||||
|
cmds=(
|
||||||
|
{-t,--tags}':print long description of arguments'
|
||||||
|
{-a,--annotate}':annotate override entries from stdin'
|
||||||
|
)
|
||||||
|
_describe -t commands 'lintian-info command' cmds && ret=0
|
||||||
|
;;
|
||||||
|
(args)
|
||||||
|
case $line[1] in
|
||||||
|
-t|--tags)
|
||||||
|
_wanted tag expl 'tag' compadd $(command awk '/^Tag:/ { print $2 }' /usr/share/lintian/checks/*.desc) && ret=0
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
return ret
|
||||||
|
|
Loading…
Reference in a new issue