4 # nanoc zsh completion - based on the homebrew zsh completion
5 # requires the 'nanoc' gem to be installed
7 local -a _1st_arguments
9 'autocompile:start the autocompiler'
10 'compile:compile items of this site'
11 'create-item:create an item'
12 'create-layout:create a layout'
13 'create-site:create a site'
14 'deploy:deploy the compiled site'
16 'prune:remove files not managed by nanoc from the output directory'
17 'show-data:show data in this site'
18 'show-plugins:show all available plugins'
19 'show-rules:describe the rules for each item'
20 'update:update the data stored by the data source to a newer version'
21 'validate-css:validate the site’s CSS'
22 'validate-html:validate the site’s HTML'
23 'validate-links:validate links in site'
24 'view:start the web server that serves static files'
25 'watch:start the watcher'
29 local -a pkgs installed_pkgs
32 '(--color)--color[enable color]' \
33 '(--debug)--debug[enable debugging]' \
34 '(--help)--help[show the help message and quit]' \
35 '(--no-color)--no-color[disable color]' \
36 '(--verbose)--verbose[make nanoc output more detailed]' \
37 '(--version)--version[show version information and quit]' \
38 '(--warn)--warn[enable warnings]' \
39 '*:: :->subcmds' && return 0
41 if (( CURRENT == 1 )); then
42 _describe -t commands "nanoc subcommand" _1st_arguments