mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-29 06:51:03 +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,36 +1,65 @@
|
||||||
#compdef lintian
|
#compdef lintian lintian-info
|
||||||
|
|
||||||
_arguments -s \
|
local line cmds ret=1
|
||||||
'(-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]' \
|
case "$service" in
|
||||||
'(-c -r -u -C -R -S -X --check --check-part --dont-check-part --remove --remove-lab --setup-lab --unpack)'{-c,--check}'[run all checks over the specified packages]' \
|
(lintian)
|
||||||
'(-c -r -u -C -R -S -X --check --check-part --dont-check-part --remove --remove-lab --setup-lab --unpack)'{-C,--check-part}'[run only the specified checks]:checks:_values -s , "lintian checks" binaries bin changelog-file chg conffiles cnf control-file dctrl control-files ctl copyright-file cpy cruft deb deb-format dfmt debconf dc debdiff dif debian-readme drm debhelper dh description des etcfiles etc fields fld files fil huge-usr-share hus infofiles info init.d ini manpages man md5sums md5 menus men menu-format mnf perl prl po-debconf pd scripts scr shared-libs shl spelling splr standards-version std' \
|
_arguments -s \
|
||||||
'(-c -r -u -C -R -S -X --check --check-part --dont-check-part --remove --remove-lab --setup-lab --unpack)'{-X,--dont-check-part}'[run only the specified checks]:checks:_values -s , "lintian checks" binaries bin changelog-file chg conffiles cnf control-file dctrl control-files ctl copyright-file cpy cruft deb deb-format dfmt debconf dc debdiff dif debian-readme drm debhelper dh description des etcfiles etc fields fld files fil huge-usr-share hus infofiles info init.d ini manpages man md5sums md5 menus men menu-format mnf perl prl po-debconf pd scripts scr shared-libs shl spelling splr standards-version std' \
|
'(-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)'{-u,--unpack}'[unpack up to unpack level]' \
|
'(-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}'[clean packages up to current unpack level]' \
|
'(-c -r -u -C -R -S -X --check --check-part --dont-check-part --remove --remove-lab --setup-lab --unpack)'{-c,--check}'[run all checks over the specified packages]' \
|
||||||
'(-h --help)'{-h,--help}'[help]' \
|
'(-c -r -u -C -R -S -X --check --check-part --dont-check-part --remove --remove-lab --setup-lab --unpack)'{-C,--check-part}'[run only the specified checks]:checks:_values -s , "lintian checks" binaries bin changelog-file chg conffiles cnf control-file dctrl control-files ctl copyright-file cpy cruft deb deb-format dfmt debconf dc debdiff dif debian-readme drm debhelper dh description des etcfiles etc fields fld files fil huge-usr-share hus infofiles info init.d ini manpages man md5sums md5 menus men menu-format mnf perl prl po-debconf pd scripts scr shared-libs shl spelling splr standards-version std' \
|
||||||
'(-v --verbose)'{-v,--verbose}'[verbose]' \
|
'(-c -r -u -C -R -S -X --check --check-part --dont-check-part --remove --remove-lab --setup-lab --unpack)'{-X,--dont-check-part}'[run only the specified checks]:checks:_values -s , "lintian checks" binaries bin changelog-file chg conffiles cnf control-file dctrl control-files ctl copyright-file cpy cruft deb deb-format dfmt debconf dc debdiff dif debian-readme drm debhelper dh description des etcfiles etc fields fld files fil huge-usr-share hus infofiles info init.d ini manpages man md5sums md5 menus men menu-format mnf perl prl po-debconf pd scripts scr shared-libs shl spelling splr standards-version std' \
|
||||||
'(-V --version)'{-V,--version}'[version]' \
|
'(-c -r -u -C -R -S -X --check --check-part --dont-check-part --remove --remove-lab --setup-lab --unpack)'{-u,--unpack}'[unpack up to unpack level]' \
|
||||||
'(-d --debug)'{-d,--debug}'[debug]' \
|
'(-c -r -u -C -R -S -X --check --check-part --dont-check-part --remove --remove-lab --setup-lab --unpack)'{-r,--remove}'[clean packages up to current unpack level]' \
|
||||||
'--print-version[print unadorned version number]' \
|
'(-h --help)'{-h,--help}'[help]' \
|
||||||
'(-i --info)'{-i,--info}'[print info about violations]' \
|
'(-v --verbose)'{-v,--verbose}'[verbose]' \
|
||||||
'(-I --display-info)'{-I,--display-info}'[also display informational tags]' \
|
'(-V --version)'{-V,--version}'[version]' \
|
||||||
'(-l --unpack-level)'{-l,--unpack-level}'[unpack level]:default unpack level:(0 1 2 none basic contents)' \
|
'(-d --debug)'{-d,--debug}'[debug]' \
|
||||||
'(-o --no-override)'{-o,--no-override}'[do not use the overrides file]' \
|
'--print-version[print unadorned version number]' \
|
||||||
'--show-overrides[output tags that have been overridden]' \
|
'(-i --info)'{-i,--info}'[print info about violations]' \
|
||||||
'(-U --unpack-info)'{-U,--unpack-info}'[collect informations]:infos:_values -s , "collectibles" changelog-file copyright-file debfiles debian-readme diffstat doc-base-files file-info init.d md5sums menu-files objdump-info override-file scripts source-control-file' \
|
'(-I --display-info)'{-I,--display-info}'[also display informational tags]' \
|
||||||
'(-m --md5sums)'{-m,--md5sums}'[check md5sums when processing a .changes file]' \
|
'(-l --unpack-level)'{-l,--unpack-level}'[unpack level]:default unpack level:(0 1 2 none basic contents)' \
|
||||||
'--allow-root[override warning when run with superuser privileges]' \
|
'(-o --no-override)'{-o,--no-override}'[do not use the overrides file]' \
|
||||||
'--cfg:config file:_files' \
|
'--show-overrides[output tags that have been overridden]' \
|
||||||
'--lab:laboratory dir:_files -/' \
|
'(-U --unpack-info)'{-U,--unpack-info}'[collect informations]:infos:_values -s , "collectibles" changelog-file copyright-file debfiles debian-readme diffstat doc-base-files file-info init.d md5sums menu-files objdump-info override-file scripts source-control-file' \
|
||||||
'--archivedir:archive directory:_files -/' \
|
'(-m --md5sums)'{-m,--md5sums}'[check md5sums when processing a .changes file]' \
|
||||||
'--dist:distribution:(woody sarge sid)' \
|
'--allow-root[override warning when run with superuser privileges]' \
|
||||||
'--section:release:(main contrib non-free)' \
|
'--cfg:config file:_files' \
|
||||||
'--arch:architecture:(alpha arm hppa hurd-i386 i386 ia64 m68k mips mipsel powerpc s390 sparc)' \
|
'--lab:laboratory dir:_files -/' \
|
||||||
'--root:root directory:_files -/' \
|
'--archivedir:archive directory:_files -/' \
|
||||||
'(-a --all)'{-a,--all}'[check all packages in the distribution]' \
|
'--dist:distribution:(woody sarge sid)' \
|
||||||
'(-b --binary)'{-b,--binary}'[the following packages are binary]' \
|
'--section:release:(main contrib non-free)' \
|
||||||
'(-s --source)'{-s,--source}'[the following packages are source]' \
|
'--arch:architecture:(alpha arm hppa hurd-i386 i386 ia64 m68k mips mipsel powerpc s390 sparc)' \
|
||||||
'--udeb[the following packages are udebs]' \
|
'--root:root directory:_files -/' \
|
||||||
'(-p --packages-file)'{-p,--packages-file}'[process packages listed in file]:list:_files' \
|
'(-a --all)'{-a,--all}'[check all packages in the distribution]' \
|
||||||
':package:_files -g "*.(changes|deb|dsc)"'
|
'(-b --binary)'{-b,--binary}'[the following packages are binary]' \
|
||||||
|
'(-s --source)'{-s,--source}'[the following packages are source]' \
|
||||||
|
'--udeb[the following packages are udebs]' \
|
||||||
|
'(-p --packages-file)'{-p,--packages-file}'[process packages listed in file]:list:_files' \
|
||||||
|
':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