aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Bo ├śrsted Andresen <bo.andresen@zlin.dk> 2010-08-15 01:40:54 +0000
committerAvatar Bo ├śrsted Andresen <bo.andresen@zlin.dk> 2010-08-15 01:46:07 +0000
commit3df99f8284a8ded59552571784ac7ded87fd3a1e (patch)
treeef2c3efce51fcb1d08fbaeb2f30f219030b76533
parentc95949d830fdf1898f9641f4e44dbfd11cc3e072 (diff)
downloadpaludis-3df99f8284a8ded59552571784ac7ded87fd3a1e.tar.gz
paludis-3df99f8284a8ded59552571784ac7ded87fd3a1e.tar.xz
Update zsh completions.
New command: cave manage-search-index. New argument: --index: cave find-candidates and search.
-rw-r--r--zsh-completion/_cave15
1 files changed, 13 insertions, 2 deletions
diff --git a/zsh-completion/_cave b/zsh-completion/_cave
index 735e75a..e345dcc 100644
--- a/zsh-completion/_cave
+++ b/zsh-completion/_cave
@@ -32,6 +32,7 @@ _cave()
'help:Display help information'
'import:Import a package from a directory containing its image'
'info:Display a summary of configuration and package information'
+ 'manage-search-index:Manages a search index for use by cave search'
'match:Determine whether a particular package version has certain properties'
'owner:Shows package IDs owning a given file'
'perform:Perform an action upon a package'
@@ -166,7 +167,8 @@ _cave_cmd_find-candidates()
'*'{--key,-k}'[Search the named metadata key]' \
'(--name -n --no-name)'{--name,-n,--no-name}'[Search package names]' \
'(--description -d --no-description)'{--description,-d,--no-description}'[Search package descriptions]' \
- '(--enabled-only -e --no-enabled-only)'{--enabled-only,-e,--no-enabled-only}'[Only search enabled parts of conditional dependency spec trees]'
+ '(--enabled-only -e --no-enabled-only)'{--enabled-only,-e,--no-enabled-only}'[Only search enabled parts of conditional dependency spec trees]' \
+ '--index[Use the specified index file]:file:_files'
}
(( ${+functions[_cave_cmd_fix-cache]} )) ||
@@ -229,6 +231,14 @@ _cave_cmd_info()
'*::arg:->cave_commands' && return
}
+(( ${+functions[_cave_cmd_manage-search-index]} )) ||
+_cave_cmd_manage-search-index()
+{
+ _arguments -s : \
+ '(--help -h)'{--help,-h}'[Display help messsage]' \
+ '(--create -c --no-create)'{--create,-c,--no-create}'[Create a new search index. The existing search index is removed if it already exists]:file:_files'
+}
+
(( ${+functions[_cave_cmd_match]} )) ||
_cave_cmd_match()
{
@@ -624,7 +634,8 @@ _cave_cmd_search()
'*'{--key,-k}'[Search the named metadata key]' \
'(--name -n --no-name)'{--name,-n,--no-name}'[Search package names]' \
'(--description -d --no-description)'{--description,-d,--no-description}'[Search package descriptions]' \
- '(--enabled-only -e --no-enabled-only)'{--enabled-only,-e,--no-enabled-only}'[Only search enabled parts of conditional dependency spec trees]'
+ '(--enabled-only -e --no-enabled-only)'{--enabled-only,-e,--no-enabled-only}'[Only search enabled parts of conditional dependency spec trees]' \
+ '--index[Use the specified index file]:file:_files'
}
(( ${+functions[_cave_cmd_show]} )) ||