aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar David Leverton <levertond@googlemail.com> 2008-01-03 17:07:13 +0000
committerAvatar David Leverton <levertond@googlemail.com> 2008-01-03 17:07:13 +0000
commitceb5b2f5d8a0f012f246f031a46f860d39a150fb (patch)
treec6baa52be86eeda200decc0860578cd72bf4091b
parent7aaaf13f6075ed1f6755d4047981b3be26355ba8 (diff)
downloadpaludis-ceb5b2f5d8a0f012f246f031a46f860d39a150fb.tar.gz
paludis-ceb5b2f5d8a0f012f246f031a46f860d39a150fb.tar.xz
Update ZSH completion. Fixes: ticket:466. From: bapt
-rw-r--r--zsh-completion/Makefile.am2
-rw-r--r--zsh-completion/_importare65
-rw-r--r--zsh-completion/_inquisitio49
-rw-r--r--zsh-completion/_paludis7
-rw-r--r--zsh-completion/_reconcilio65
5 files changed, 169 insertions, 19 deletions
diff --git a/zsh-completion/Makefile.am b/zsh-completion/Makefile.am
index c8c5ab9..5b59d43 100644
--- a/zsh-completion/Makefile.am
+++ b/zsh-completion/Makefile.am
@@ -1,5 +1,5 @@
MAINTAINERCLEANFILES = Makefile.in
-noinst_DATA = _paludis _adjutrix _paludis_packages _inquisitio
+noinst_DATA = _paludis _adjutrix _paludis_packages _inquisitio _importare _reconcilio
EXTRA_DIST = $(noinst_DATA)
built-sources : $(BUILT_SOURCES)
diff --git a/zsh-completion/_importare b/zsh-completion/_importare
new file mode 100644
index 0000000..b17019f
--- /dev/null
+++ b/zsh-completion/_importare
@@ -0,0 +1,65 @@
+#compdef importare
+#
+# vim: set et sw=4 sts=4 ts=4 ft=zsh :
+# ZSH completion for adjutrix
+# Written by Baptiste Daroussin <baptux at free.fr>
+
+_importare() {
+ local actions action_options general_options source_options metadata_options install_options deplist_options
+ actions=(
+ --install
+ --version -V
+ --help -h
+ )
+ general_options=(
+ '--log-level[Specify the log level]:log level:((debug\:Show\ debug\ output qa\:Show\ QA\ messages\ and\ warnings\ only warning\:Show\ warnings\ only silent\:Suppress\ all\ log\ messages))'
+ '(--no-colour --no-color)'{--no-colour,--no-color}"[Do not use colour]"
+ "(--environment -E)"{-E,--environment}"[Environment specification]"
+ "--compact[Display output using one line per entry]"
+ )
+ source_options=(
+ "(--location -l)"{-l,--location}"[Location of source image]:Repository:_files -/"
+ )
+ metadata_options=(
+ "(--description -D)"{-D,--description}"[Specify a package description]:Description:"
+ "(--build-dependency -B)"{-B,--build-dependency}"[Specify a build dependency]:Build dependency:"
+ "(--run-dependency -R)"{--run-dependency,-R}"[Specify a run dependency]:Run dependency:"
+ "(--preserve-metadata -P)"{-P,--preserve-metadata}"[If replacing a package, copy its description and dependencies]"
+ )
+ install_options=(
+ "(--pretend -p)"{--pretend,-p}"[Pretend only]"
+ "(--destinations -d)"{--destinations,-d}"[Use specified destinations instead of defaults]:destinations:_paludis_packages repositories"
+ "--no-config-protection[Disable config file protection (dangerous)]"
+ "--show-reasons[Show why packages are being (un)installed]:Verbosity:((none\:Don\ t\ show\ any\ information summary\:Show\ a\ summary full\:Show\ full\ output))"
+ "--show-use-descriptions[Show descriptions of USE flags]:case to show:((none\:Don\ t\ show\ any\ descriptions new\:Show\ for\ new\ use\ flags changed\:Show\ for\ new\ and\ changed\ flags all\:Show for all flags))"
+ "--show-package-descriptions[Show package descriptions]:When:((none\:Don\ t\ show\ any\ descriptions new\:Show\ descriptions\ for\ new\ packages all\:Show\ descriptions\ for\ all\ packages))"
+ "--continue-on-failure[Whether to continue after a fetch or install error]:When:((if-fetch-only\:If\ fetching\ only never\:Never if-satisfied\:If\ remaining\ packages\ dependencies\ are\ satisfied if-independent\:If\ independent\ of\ failed\ and\ skipped\ packages always\:Always))"
+ )
+ deplist_options=(
+ "--dl-deps-default[Override default behaviour for all dependency classes]:How::How:(pre pre-or-post post try-post discard)"
+ "--dl-reinstall[When to reinstall packages]:When:(never always if-use-changed)"
+ "--dl-reinstall-scm[When to reinstall scm packages]:When:(never always daily weekly)"
+ "--dl-upgrade[When to upgrade packages]:When:(always as-needed)"
+ "--dl-new-slots[When to pull in new slots (works with --dl-upgrade)]:When:(always as-needed)"
+ "--dl-downgrade[When to downgrade packages]:When:(as-needed warning error)"
+ "--dl-installed-deps-pre[How to handle pre dependencies for installed packages]:How:(pre pre-or-post post try-post discard)"
+ "--dl-installed-deps-runtime[How to handle runtime dependencies for installed packages]:How:(pre pre-or-post post try-post discard)"
+ "--dl-installed-deps-post[How to handle post dependencies for installed packages]:How:(pre pre-or-post post try-post discard)"
+ "--dl-uninstalled-deps-pre[How to handle pre dependencies for uninstalled packages]:How:(pre pre-or-post post try-post discard)"
+ "--dl-uninstalled-deps-post[How to handle post dependencies for uninstalled packages]:How:(pre pre-or-post post try-post discard)"
+ "--dl-uninstalled-deps-runtime[How to handle runtime dependencies for uninstalled packages]:How:(pre pre-or-post post try-post discard)"
+ "--dl-uninstalled-deps-suggested[How to handle suggested dependencies for uninstalled packages]:How(pre pre-or-post post try-post discard)"
+ "--dl-suggested[How to handle suggested dependencies]:How:(show install discard)"
+ "--dl-circular[How to handle circular dependencies]:How:(error discard)"
+ "--dl-blocks[How to handle blocks]:How:(accumulate error discard)"
+ "--dl-override-masks[Zero or more mask kinds that can be overridden as necessary]:What:(tilde-keyword unkeyworded profile repository license)"
+ "--dl-fall-back[When to fall back to installed packages]:When:(as-needed-except-targets as-needed never)"
+ )
+ action_options=(
+ "($actions)"{-i,--install}"[Install one or more packages]"
+ "(: -)"{--version,-V}"[Display program version]"
+ "(: -)"{--help,-h}"[Display program help]"
+ )
+ _arguments -s \
+ $general_options[@] $source_options[@] $metadata_options[@] $install_options[@] $deplist_options[@] $action_options[@] && return 0
+}
diff --git a/zsh-completion/_inquisitio b/zsh-completion/_inquisitio
index 9eaa0c7..bf50897 100644
--- a/zsh-completion/_inquisitio
+++ b/zsh-completion/_inquisitio
@@ -1,37 +1,52 @@
#compdef inquisitio
-
+#
# vim: set et sw=4 sts=4 ts=4 ft=zsh :
-# ZSH completion for inquisitio
+# ZSH completion for adjutrix
# Written by Baptiste Daroussin <baptux at free.fr>
_inquisitio() {
- local actions general_options search_options action_options
+ local actions actions_options general_options matching_options filter_options output_options
actions=(
--search -s
--version -V
--help -h
)
- action_options=(
- "($actions)"{--search,-s}"[Search for a package]"
- "(: -)"{--version,-V}"[Display program version]"
- "(: -)"{--help,-h}"[Display program help]"
+ matching_options=(
+ "(--keys -k)"{-k,--keys}"[Match using listed metadata keys]"
+ "(--matcher -m)"{-m,--matcher}"[Which match algorithm to use]:algorithm:((text\:Simple\ text\ match pcre\:Regular\ expression exact\:Exact\ text\ match))"
+ "(--flatten -f)"{-f,--flatten}"[Flatten spec trees, rather than matching against individual items]"
+ "(--enabled-only -e)"{-e,--enabled-only}"[When searching spec trees, only look in enabled subtrees]"
+ "(--not -n)"{-n,--not}"[Select packages that do not match]"
)
+
+ filter_options=(
+ "(--repository -r)"{-r,--repository}"[Matches with this repository name only]:repository:_paludis_packages repositories"
+ "--repository-format[Matches with this repository format only]:format:_paludis_packages repository-formats"
+ "--category[Matches with this category name only]:category:_paludis_packages categories"
+ "--package[Matches with this package name only]:package:_paludis_packages available"
+ "(--visible-only -v)"{-v,--visible-only}"[Only consider visible packages]"
+ "(--all-versions -a)"{-a,--all-versions}"[Check all versions, rather than only one]"
+ "(--kind -k)"{-k,--kind}"[Packages of this kind only]:((installable\:Installable\ packages installed\:Installed\ packages all\:All\ packages))"
+ )
+
general_options=(
- "--log-level[Specify the log level]:log level:((debug\:Show\ debug\ output qa\:Show\ QA\ messages\ and\ warnings\ only warning\:Show\ warnings\ only silent\:Suppress\ all\ log\ messages))"
+ "--log-level[Specify the log level]:log level:((debug\:Show\ debug\ output qa\:Show\ QA\ messages\ and\ warnings\ only warning\:Show\ warnings\ only silent\:Suppress\ all\ log\ messages))"
"(--no-colour --no-color)"{--no-colour,--no-color}"[Do not use colour]"
"(--environment -E)"{-E,--environment}"[Environment specification]"
- "(--repository-dir -D)"{--repository-dir,-D}"[Where to find the repository]:repository:_files -/"
)
- search_options=(
- "(--matcher -m)"{--matcher,-m}"[Which match algorithm to use]:which:((text\:Simple\ text\ match pcre\:Regular\ expression\ match\ using\ pcre))"
- "(--extractors -e)"{--extractors,-e}"[Which extractors to use]:which:((description\:Match\ against\ description name\:Match\ against\ package\ name homepage\:Match\ against\ homepage))"
- "--repository[Matches with this repository name only]:repository:_paludis_packages repositories"
- "--repository-format[Matches with this repository format only]:format:_paludis_packages repository-formats"
- "--category[Matches with this category name only]:category:_paludis_packages categories"
- "--package[Matches with this package name only]:package:_paludis_packages available"
+ output_options=(
+ "--compact[Display output using one line per entry]"
+ "(--show-dependencies -D)"{-D,--show-dependencies}"[Show dependencies]"
+ "(--show-metadata -M)"{-M,--show-metadata}"[Show raw metadata]"
)
+ action_options=(
+ "($actions)"{--search,-s}"[Search for a package]"
+ "(: -)"{--version,-V}"[Display program version]"
+ "(: -)"{--help,-h}"[Display program help]"
+ )
+
_arguments -s \
- $general_options[@] $search_options[@] $action_options[@] && return 0
+ $general_options[@] $output_options[@] $filter_options[@] $matching_options[@] $action_options[@] && return 0
}
_inquisitio "$@"
diff --git a/zsh-completion/_paludis b/zsh-completion/_paludis
index edfeb10..7e8c49e 100644
--- a/zsh-completion/_paludis
+++ b/zsh-completion/_paludis
@@ -24,8 +24,11 @@ _paludis() {
"(--fetch -f)"{--fetch,-f}"[Only fetch sources; don t install anything]"
"--show-reasons[Show why packages are being (un)installed]:Verbosity:((none\:Don\ t\ show\ any\ information summary\:Show\ a\ summary full\:Show\ full\ output))"
"--show-use-descriptions[Show descriptions of USE flags]:case to show:((none\:Don\ t\ show\ any\ descriptions new\:Show\ for\ new\ use\ flags changed\:Show\ for\ new\ and\ changed\ flags all\:Show for all flags))"
+ "--show-package-descriptions[Show package descriptions]:When:((none\:Don\ t\ show\ any\ descriptions new\:Show\ descriptions\ for\ new\ packages all\:Show\ descriptions\ for\ all\ packages))"
"--add-to-world-spec[Use this atom, rather than all targets, for updating world (for resume commands)]"
- "--safe-resume[Allow interrupted downloads to be resumed safely]"
+ "--no-safe-resume[Do not allow interrupted downloads to be resumed]"
+ "--continue-on-failure[Whether to continue after a fetch or install error]:When:((if-fetch-only\:If\ fetching\ only never\:Never if-satisfied\:If\ remaining\ packages\ dependencies\ are\ satisfied if-independent\:If\ independent\ of\ failed\ and\ skipped\ packages always\:Always))"
+ "--checks[Whether to run post-build checks]:When:((none\:Don\ t\ run\ checks,\ even\ if\ they\ should\ be\ run default\:Run\ checks\ if\ they\ should\ be\ run\ by\ default always\:Always\ run\ checks))"
"(--destinations -d)"{--destinations,-d}"[Use specified destinations instead of defaults]:destinations:_paludis_packages repositories"
)
list_args=(
@@ -55,6 +58,7 @@ _paludis() {
"(--no-colour --no-color)"{--no-colour,--no-color}"[Do not use colour]"
"(--environment -E)"{-E,--environment}"[Environment specification]"
"--resume-command-template[Save the resume command to a file made using mkstemp(3)]:file:_files"
+ "--compact[Display output using one line per entry]"
)
action_args=(
@@ -96,6 +100,7 @@ _paludis() {
"--dl-uninstalled-deps-pre[How to handle pre dependencies for uninstalled packages]:How:(pre pre-or-post post try-post discard)"
"--dl-uninstalled-deps-post[How to handle post dependencies for uninstalled packages]:How:(pre pre-or-post post try-post discard)"
"--dl-uninstalled-deps-runtime[How to handle runtime dependencies for uninstalled packages]:How:(pre pre-or-post post try-post discard)"
+ "--dl-uninstalled-deps-suggested[How to handle suggested dependencies for uninstalled packages]:How(pre pre-or-post post try-post discard)"
"--dl-circular[How to handle circular dependencies]:How:(error discard)"
"--dl-fall-back[When to fall back to installed packages]:When:(as-needed-except-targets as-needed never)"
"--dl-new-slots[When to pull in new slots (works with --dl-upgrade)]:When:(always as-needed)"
diff --git a/zsh-completion/_reconcilio b/zsh-completion/_reconcilio
new file mode 100644
index 0000000..8c3f002
--- /dev/null
+++ b/zsh-completion/_reconcilio
@@ -0,0 +1,65 @@
+#compdef reconcilio
+#
+# vim: set et sw=4 sts=4 ts=4 ft=zsh :
+# ZSH completion for adjutrix
+# Written by Baptiste Daroussin <baptux at free.fr>
+_reconcilio() {
+ local actions action_options general_options fix_linkage_options install_options deplist_options
+ actions=(
+ --fix-linkage
+ --version -V
+ --help -h
+ )
+ general_options=(
+ '--log-level[Specify the log level]:log level:((debug\:Show\ debug\ output qa\:Show\ QA\ messages\ and\ warnings\ only warning\:Show\ warnings\ only silent\:Suppress\ all\ log\ messages))'
+ '(--no-colour --no-color)'{--no-colour,--no-color}"[Do not use colour]"
+ "(--environment -E)"{-E,--environment}"[Environment specification]"
+ "--exact[Rebuild the same package version that is currently installed]"
+ "(--verbose, -v)"{-v,--verbose}"[Display more detailed output]"
+ "--resume-command-template[Save the resume command to a file]:file:_files"
+ "--compact[Display output using one line per entry]"
+ )
+ fix_linkage_options=(
+ "--library[Only rebuild packages linked against this library, even if it exists]"
+ )
+ install_options=(
+ "(--pretend -p)"{--pretend,-p}"[Pretend only]"
+ "--no-config-protection[Disable config file protection (dangerous)]"
+ "--debug-build[What to do with debug information]:Debug Build:(( none\:Discard\ debug\ information split\:Split\ debug\ information internal\:Keep\ debug\ information\ with\ binaries ))"
+ "(--fetch -f)"{--fetch,-f}"[Only fetch sources; don t install anything]"
+ "--checks[Whether to run post-build checks]:When:((none\:Don\ t\ run\ checks,\ even\ if\ they\ should\ be\ run default\:Run\ checks\ if\ they\ should\ be\ run\ by\ default always\:Always\ run\ checks))"
+ "--no-safe-resume[Do not allow interrupted downloads to be resumed]"
+ "--show-reasons[Show why packages are being (un)installed]:Verbosity:((none\:Don\ t\ show\ any\ information summary\:Show\ a\ summary full\:Show\ full\ output))"
+ "--show-use-descriptions[Show descriptions of USE flags]:case to show:((none\:Don\ t\ show\ any\ descriptions new\:Show\ for\ new\ use\ flags changed\:Show\ for\ new\ and\ changed\ flags all\:Show for all flags))"
+ "--show-package-descriptions[Show package descriptions]:When:((none\:Don\ t\ show\ any\ descriptions new\:Show\ descriptions\ for\ new\ packages all\:Show\ descriptions\ for\ all\ packages))"
+ "--continue-on-failure[Whether to continue after a fetch or install error]:When:((if-fetch-only\:If\ fetching\ only never\:Never if-satisfied\:If\ remaining\ packages\ dependencies\ are\ satisfied if-independent\:If\ independent\ of\ failed\ and\ skipped\ packages always\:Always))"
+ )
+ deplist_options=(
+ "--dl-reinstall[When to reinstall packages]:When:(never always if-use-changed)"
+ "--dl-reinstall-scm[When to reinstall scm packages]:When:(never always daily weekly)"
+ "--dl-upgrade[When to upgrade packages]:When:(always as-needed)"
+ "--dl-new-slots[When to pull in new slots (works with --dl-upgrade)]:When:(always as-needed)"
+ "--dl-downgrade[When to downgrade packages]:When:(as-needed warning error)"
+ "--dl-installed-deps-pre[How to handle pre dependencies for installed packages]:How:(pre pre-or-post post try-post discard)"
+ "--dl-installed-deps-runtime[How to handle runtime dependencies for installed packages]:How:(pre pre-or-post post try-post discard)"
+ "--dl-installed-deps-post[How to handle post dependencies for installed packages]:How:(pre pre-or-post post try-post discard)"
+ "--dl-uninstalled-deps-pre[How to handle pre dependencies for uninstalled packages]:How:(pre pre-or-post post try-post discard)"
+ "--dl-uninstalled-deps-post[How to handle post dependencies for uninstalled packages]:How:(pre pre-or-post post try-post discard)"
+ "--dl-uninstalled-deps-runtime[How to handle runtime dependencies for uninstalled packages]:How:(pre pre-or-post post try-post discard)"
+ "--dl-uninstalled-deps-suggested[How to handle suggested dependencies for uninstalled packages]:How(pre pre-or-post post try-post discard)"
+ "--dl-suggested[How to handle suggested dependencies]:How:(show install discard)"
+ "--dl-circular[How to handle circular dependencies]:How:(error discard)"
+ "--dl-blocks[How to handle blocks]:How:(accumulate error discard)"
+ "--dl-override-masks[Zero or more mask kinds that can be overridden as necessary]:What:(tilde-keyword unkeyworded profile repository license)"
+ "--dl-fall-back[When to fall back to installed packages]:When:(as-needed-except-targets as-needed never)"
+ )
+ action_options=(
+ "($actions)"{--fix-linkage}"[Search for and rebuild packages linked against non-existant libraries]"
+ "(: -)"{--version,-V}"[Display program version]"
+ "(: -)"{--help,-h}"[Display program help]"
+ )
+ _arguments -s \
+ $general_options[@] $fix_linkage_options[@] $install_options[@] $deplist_options[@] $action_options[@] && return 0
+}
+
+_reconcilio "$@"