diff options
author | Peter Tillemans <pti@snamellit.com> | 2012-10-12 09:34:21 +0200 |
---|---|---|
committer | Peter Tillemans <pti@snamellit.com> | 2012-10-12 09:34:21 +0200 |
commit | 55cc936d4e6d88f18518cedc9574b1df10702f8b (patch) | |
tree | d3af641456bc60a7cc8ddcc0d36541c5d0f374f7 /plugins/nanoc/_nanoc | |
parent | ef96b6c16e1e59c449ef31d658d3232135a3e482 (diff) | |
parent | c2ae9e09ca1f33ff1e13e629a0b2e6bdd19f83a9 (diff) | |
download | zsh-55cc936d4e6d88f18518cedc9574b1df10702f8b.tar.gz zsh-55cc936d4e6d88f18518cedc9574b1df10702f8b.tar.bz2 zsh-55cc936d4e6d88f18518cedc9574b1df10702f8b.zip |
Merge branch 'master' of https://github.com/robbyrussell/oh-my-zsh
Diffstat (limited to 'plugins/nanoc/_nanoc')
-rw-r--r-- | plugins/nanoc/_nanoc | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/plugins/nanoc/_nanoc b/plugins/nanoc/_nanoc new file mode 100644 index 000000000..fde07c3fc --- /dev/null +++ b/plugins/nanoc/_nanoc @@ -0,0 +1,44 @@ +#compdef nanoc +#autoload + +# nanoc zsh completion - based on the homebrew zsh completion +# requires the 'nanoc' gem to be installed + +local -a _1st_arguments +_1st_arguments=( + 'autocompile:start the autocompiler' + 'compile:compile items of this site' + 'create-item:create an item' + 'create-layout:create a layout' + 'create-site:create a site' + 'deploy:deploy the compiled site' + 'help:show help' + 'prune:remove files not managed by nanoc from the output directory' + 'show-data:show data in this site' + 'show-plugins:show all available plugins' + 'show-rules:describe the rules for each item' + 'update:update the data stored by the data source to a newer version' + 'validate-css:validate the site’s CSS' + 'validate-html:validate the site’s HTML' + 'validate-links:validate links in site' + 'view:start the web server that serves static files' + 'watch:start the watcher' +) + +local expl +local -a pkgs installed_pkgs + +_arguments \ + '(--color)--color[enable color]' \ + '(--debug)--debug[enable debugging]' \ + '(--help)--help[show the help message and quit]' \ + '(--no-color)--no-color[disable color]' \ + '(--verbose)--verbose[make nanoc output more detailed]' \ + '(--version)--version[show version information and quit]' \ + '(--warn)--warn[enable warnings]' \ + '*:: :->subcmds' && return 0 + +if (( CURRENT == 1 )); then + _describe -t commands "nanoc subcommand" _1st_arguments + return +fi |