aboutsummaryrefslogtreecommitdiff
path: root/zsh/.zsh/completion/_berks
diff options
context:
space:
mode:
authorxero <x@xero.nu>2017-01-23 00:13:18 -0500
committerxero <x@xero.nu>2017-01-23 00:13:18 -0500
commit3cf3b8ef6764c9ec44605904217f51f1eba8e6d6 (patch)
tree0d9fb7adc1bed97e3dbd0c76c045d6c437e09086 /zsh/.zsh/completion/_berks
parent5a4d4a06a287985fbf5b458056881d3d0a0c71aa (diff)
downloaddotfiles_ascii-3cf3b8ef6764c9ec44605904217f51f1eba8e6d6.tar.xz
dotfiles_ascii-3cf3b8ef6764c9ec44605904217f51f1eba8e6d6.zip
zsh updates
Diffstat (limited to 'zsh/.zsh/completion/_berks')
-rw-r--r--zsh/.zsh/completion/_berks34
1 files changed, 34 insertions, 0 deletions
diff --git a/zsh/.zsh/completion/_berks b/zsh/.zsh/completion/_berks
new file mode 100644
index 0000000..3c79cfb
--- /dev/null
+++ b/zsh/.zsh/completion/_berks
@@ -0,0 +1,34 @@
+#compdef berks
+
+local -a _1st_arguments
+_1st_arguments=(
+ 'apply: Apply version locks from Berksfile.lock to a Chef environment'
+ 'contingent: List all cookbooks that depend on the given cookbook in your Berksfile'
+ 'cookbook: Create a skeleton for a new cookbook'
+ 'help: Describe available commands or one specific command'
+ 'info: Display name, author, copyright, and dependency information about a cookbook'
+ 'init: Initialize Berkshelf in the given directory'
+ 'install: Install the cookbooks specified in the Berksfile'
+ 'list: List cookbooks and their dependencies specified by your Berksfile'
+ 'outdated: List dependencies that have new versions available that satisfy their constraints'
+ 'package: Vendor and archive the dependencies of a Berksfile'
+ 'search: Search the remote source for cookbooks matching the partial name'
+ 'shelf: Interact with the cookbook store'
+ 'show: Display the path to a cookbook on disk'
+ 'update: Update the cookbooks (and dependencies) specified in the Berksfile'
+ 'upload: Upload the cookbook specified in the Berksfile to the Chef Server'
+ 'vendor: Vendor the cookbooks specified by the Berksfile into a directory'
+ 'verify: Perform a quick validation on the contents of your resolved cookbooks'
+ 'version: Display version'
+ 'viz: Visualize the dependency graph'
+)
+
+_arguments \
+ '(-v)'{-v,--version}'[version]' \
+ '(-h)'{-h,--help}'[help]' \
+ '*:: :->subcmds' && return 0
+
+if (( CURRENT == 1 )); then
+ _describe -t commands "berks subcommand" _1st_arguments
+ return
+fi