aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ingmar Vanhassel <ingmar@exherbo.org> 2009-08-20 07:26:45 +0200
committerAvatar Ingmar Vanhassel <ingmar@exherbo.org> 2009-08-20 07:29:56 +0200
commit0a6a998fa7a93976c0c075913ffcbf213ccc095a (patch)
treed5105cd656c633f318fd58d782aa5693d2461139
parent65dd48c763085c3ee4a26c3e145f4e23855cf655 (diff)
downloadpaludis-0a6a998fa7a93976c0c075913ffcbf213ccc095a.tar.gz
paludis-0a6a998fa7a93976c0c075913ffcbf213ccc095a.tar.xz
zsh-completion: Completion for 'cave perform' (incomplete)
-rw-r--r--zsh-completion/_cave10
1 files changed, 10 insertions, 0 deletions
diff --git a/zsh-completion/_cave b/zsh-completion/_cave
index 7be1603..3cd65f1 100644
--- a/zsh-completion/_cave
+++ b/zsh-completion/_cave
@@ -19,6 +19,7 @@ _cave()
_cave_commands=(
'help:Display help information for a particular command'
+ 'perform:Perform an action upon a package'
'print-categories:Prints a list of known categories'
'print-commands:Prints a list of known cave commands'
'print-environment-metadata:Prints environment metadata'
@@ -79,6 +80,15 @@ _cave_cmd_help()
esac
}
+(( ${+functions[_cave_cmd_perform]} )) ||
+_cave_cmd_perform()
+{
+ _arguments -s : \
+ '(--help -h)'{--help,-h}'[Display help messsage]' \
+ '(--if-supported --no-if-supported)'{--if-supported,--no-if-supported}'[Exit with success rather than erroring, if the action is not supported]' \
+ '(--hooks --no-hooks)'{--hooks,--no-hooks}'[Execute appropriate hooks for the action]'
+}
+
(( ${+functions[_cave_cmd_print-categories]} )) ||
_cave_cmd_print-categories()
{