aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ingmar Vanhassel <ingmar@exherbo.org> 2009-08-04 02:03:57 +0200
committerAvatar Ingmar Vanhassel <ingmar@exherbo.org> 2009-08-20 07:21:29 +0200
commit37e77a0ee1f7da356df7c2a1f2b49364c0b1d690 (patch)
tree6acf6ad61f0770ad9b7184b72976f866a329b074
parentdd0566f16e27f2110581234fe1c48a11d18a7d64 (diff)
downloadpaludis-37e77a0ee1f7da356df7c2a1f2b49364c0b1d690.tar.gz
paludis-37e77a0ee1f7da356df7c2a1f2b49364c0b1d690.tar.xz
zsh-completion: Completion for 'cave resolve'
-rw-r--r--zsh-completion/_cave22
1 files changed, 22 insertions, 0 deletions
diff --git a/zsh-completion/_cave b/zsh-completion/_cave
index c43c989..0ba7eaa 100644
--- a/zsh-completion/_cave
+++ b/zsh-completion/_cave
@@ -31,6 +31,7 @@ _cave()
'print-repositories:Prints a list of repositories'
'print-sets:Prints a list of sets'
'print-sync-protocols:Prints a list of sync protocols'
+ 'resolve:Display how to resolve targets and optionally perform that resolution'
'show:Displays a formatted summary of a given object'
'sync:Sync all or specified repositories'
)
@@ -171,6 +172,27 @@ _cave_cmd_print-repositories()
'--format[Show only repositories of a specific format]:repository format: '
}
+(( ${+functions[_cave_cmd_resolve]} )) ||
+_cave_cmd_resolve()
+{
+ _arguments -s : \
+ '(--help -h)'{--help,-h}'[Display help messsage]' \
+ '(--execute -x)'{--execute,-x}'[Execute resolution]' \
+ '(--lazy -z --complete -c --everything -e --no-lazy --no-complete --no-everything)'{--lazy,-z,--no-lazy}'[Do as little work as possible]' \
+ '(--lazy -z --complete -c --everything -e --no-lazy --no-complete --no-everything)'{--complete,-c,--no-complete}'[Do all optional work]' \
+ '(--lazy -z --complete -c --everything -e --no-lazy --no-complete --no-everything)'{--everything,-e,--no-everything}'[Do all optional work, and also reinstall]' \
+ '--explain[Explain why decisions are made]:package depspec: ' \
+ '(--keep-targets -K)'{--keep-targets,-K}'[Select whether to keep target packages]:When:((auto never if-transient if-same if-same-version if-possible))' \
+ '(--keep -k)'{--keep,-k}'[Select whether to keep packages that are not targets]:When:((never if-transient if-same if-same-version if-possible))' \
+ '(--reinstall-scm -R)'{--reinstall-scm,-R}'[Select whether to reinstall SCM packages that would otherwise be kept]:When:((always daily weekly never))' \
+ '(--target-slots -S)'{--target-slots,-S}'[Which slots to consider for targets]:Which:((best-or-installed installed-or-best all best))' \
+ '(--slots -s)'{--slots,-s}'[Which slots to consider for packages that are not targets]:Which:((best-or-installed installed-or-best all best))' \
+ '(--follow-installed-build-dependencies --no-follow-installed-build-dependencies -D)'{--follow-installed-build-dependencies,--no-follow-installed-build-dependencies,-D}'[Follow build dependencies for installed packages]' \
+ '(--ignore-installed-dependencies --no-ignore-installed-dependencies -d)'{--ignore-installed-dependencies,--no-ignore-installed-dependencies,-d}'[Ignore dependencies for installed packages]' \
+ '(--dump --no-dump)'{--dump,--no-dump}'[Dump debug output]' \
+ '(--dump-dependencies --no-dump-dependencies)'{--dump-dependencies,--no-dump-dependencies}'[Dump the sanitised dependencies selected for every package]'
+}
+
(( ${+functions[_cave_cmd_show]} )) ||
_cave_cmd_show()
{