aboutsummaryrefslogtreecommitdiff
path: root/zsh-completion
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-02-06 13:40:38 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-02-06 13:40:38 +0000
commitddcc1913de592ad6c08212fe09efd68328b43dc1 (patch)
treede28de51eacc21d9f7834a4e7ad0084c74b9ee70 /zsh-completion
parentfe657fcda33701ce86fbdf83ed9621e40fc2c11d (diff)
downloadpaludis-ddcc1913de592ad6c08212fe09efd68328b43dc1.tar.gz
paludis-ddcc1913de592ad6c08212fe09efd68328b43dc1.tar.xz
Kill adjutrix
Diffstat (limited to 'zsh-completion')
-rw-r--r--zsh-completion/Makefile.am2
-rw-r--r--zsh-completion/_adjutrix65
2 files changed, 1 insertions, 66 deletions
diff --git a/zsh-completion/Makefile.am b/zsh-completion/Makefile.am
index ccc8e5c..f5275c5 100644
--- a/zsh-completion/Makefile.am
+++ b/zsh-completion/Makefile.am
@@ -1,5 +1,5 @@
MAINTAINERCLEANFILES = Makefile.in
-noinst_DATA = _adjutrix _paludis_packages _cave
+noinst_DATA = _paludis_packages _cave
EXTRA_DIST = $(noinst_DATA)
AUTOMAKE_OPTIONS = 1.11 parallel-tests
diff --git a/zsh-completion/_adjutrix b/zsh-completion/_adjutrix
deleted file mode 100644
index b4cbf5d..0000000
--- a/zsh-completion/_adjutrix
+++ /dev/null
@@ -1,65 +0,0 @@
-#compdef adjutrix
-
-# vim: set et sw=4 sts=4 ts=4 ft=zsh :
-# ZSH completion for adjutrix
-# Written by Baptiste Daroussin <baptux at free.fr>
-
-_adjutrix() {
- local actions tree_options profile_options general_options actions_args arches
- actions=(
- --what-needs-keywording -w
- --find-stable-candidates -s
- --find-dropped-keywords -d
- --find-insecure-packages -i
- --find-unused-packages -U
- --keyword-graph -k
- --reverse-deps -r
- --display-profiles-use -u
- --display-default-system-resolution -S
- --build-downgrade-check-list
- --downgrade-check
- --version -V
- --help -h
- )
- arches=(alpha amd64 arm hppa ia64 m68k mips ppc ppc64 ppc-macos s390 sh sparc sparc-fbsd x86 x86-fbsd)
- tree_options=(
- '(--category -C)'{--category,-C}'[Matches with this category name only (may be specified multiple times)]:Category:'
- '(--package -P)'{--package,-P}'[Matches with this package name only (may be specified multiple times)]:Packages:'
- )
- profile_options=(
- '--profile[Display results for this profile path, rather than all profiles (may be specified multiple times)]:Profile:_files -/'
- '--unstable[Accept ~arch as well as arch]'
- )
- general_options=(
- '--log-level[Specify the log level]:log level:((debug\:"Show debug output (noisy)" qa\:"Show QA messages and warnings only (default)" warning\:"Show warnings only" silent\:"Suppress all log messages (UNSAFE)"))'
- '(--no-colour --no-color)'{--no-colour,--no-color}"[Do not use colour]"
- '(--repository-dir -D)'{--repository-dir,-D}'[Where to find the repository]:repository:_files -/'
- )
- action_args=(
- "($actions)"{--what-needs-keywording,-w}"[Display what needs to be done to keyword a target]:arch:($arches)"
- "($actions)"{--find-unused-packages,-U}"[Search package versions that can probably safely be removed]"
- "($actions)"{--find-stable-candidates,-s}"[Search for stable package candidates]:arch:($arches)"
- "($actions)"{--find-dropped-keywords,-d}"[Search for packages where keywords have been dropped]:arch:($arches)"
- "($actions)"{--find-insecure-packages,-i}"[Search for packages marked as insecure by a GLSA]"
- "($actions)"{--keyword-graph,-k}"[Display keywords graphically]"
- "($actions)"{--reverse-deps,-r}"[all package that depend on a given dep spec]:Packages:"
- "($actions)"{--display-profiles-use,-u}"[Display USE information for all profiles]"
- "($actions)"{--display-default-system-resolution,-S}"[Display package names and versions that are included in the default resolution of the system set]"
- "($actions)--build-downgrade-check-list[Build the downgrade check lists]"
- "($actions)--downgrade-check[Perform the dowgrade check]"
- "(: -)"{--version,-V}"[Display program version]"
- "(: -)"{--help,-h}"[Display program help]"
- )
- if (( $words[(I)(--(find-stable-candidates|find-dropped-keywords|find-insecure-packages|keyword-graph|reverse-deps)|-[[:alpha:]]#(s|d|i|k|r)[[:alpha:]]#)] ));then
- _arguments -s \
- $general_options[@] $tree_options[@] && return 0
- elif (( $words[(I)(--(display-profiles-use|display-default-system-resolution)|-[[:alpha:]]#(u|S)[[:alpha:]]#)] ));then
- _arguments -s \
- $general_options[@] $profile_options[@] && return 0
- else
- _arguments -s \
- $general_options[@] $profile_options[@] $tree_options[@] $action_args[@] && return 0
- fi
-}
-
-_adjutrix "$@"