aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ingmar Vanhassel <ingmar@exherbo.org> 2009-08-20 07:26:35 +0200
committerAvatar Ingmar Vanhassel <ingmar@exherbo.org> 2009-08-20 07:26:35 +0200
commit65dd48c763085c3ee4a26c3e145f4e23855cf655 (patch)
treef4ff4ac8f929d644585dc8a6875df34cc951831b
parent37e77a0ee1f7da356df7c2a1f2b49364c0b1d690 (diff)
downloadpaludis-65dd48c763085c3ee4a26c3e145f4e23855cf655.tar.gz
paludis-65dd48c763085c3ee4a26c3e145f4e23855cf655.tar.xz
zsh-completion: Completion for 'cave update-world'
-rw-r--r--zsh-completion/_cave10
1 files changed, 10 insertions, 0 deletions
diff --git a/zsh-completion/_cave b/zsh-completion/_cave
index 0ba7eaa..7be1603 100644
--- a/zsh-completion/_cave
+++ b/zsh-completion/_cave
@@ -34,6 +34,7 @@ _cave()
'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'
+ 'update-world:Update the world set'
)
for (( i=1; i <= ${CURRENT}; i++ )); do
@@ -212,5 +213,14 @@ _cave_cmd_sync()
'(--help -h)'{--help,-h}'[Display help messsage]'
}
+(( ${+functions[_cave_cmd_update-world]} )) ||
+_cave_cmd_update-world()
+{
+ _arguments -s : \
+ '(--help -h)'{--help,-h}'[Display help messsage]' \
+ '(--remove --no-remove -r)'{--remove,--no-remove,-r}'[Remove the specified items]' \
+ '(--set --no-set -s)'{--set,--no-set,-s}'[Parameters are set names, not package names]'
+}
+
_cave "${@}"