4 # requires the 'nanoc' gem to be installed
6 local -a _1st_arguments
8 'check:run issue checks'
9 'compile:compile items of this site'
10 'create-site:create a site'
11 'deploy:deploy the compiled site'
13 'prune:remove files not managed by nanoc from the output directory'
14 'shell:open a shell on the Nanoc environment'
15 'show-data:show data in this site'
16 'show-plugins:show all available plugins'
17 'show-rules:describe the rules for each item'
18 'view:start the web server that serves static files'
22 local -a pkgs installed_pkgs
25 '(--color)--color[enable color]' \
26 '(--debug)--debug[enable debugging]' \
27 '(--env)--env[set environment]' \
28 '(--help)--help[show the help message and quit]' \
29 '(--no-color)--no-color[disable color]' \
30 '(--verbose)--verbose[make output more detailed]' \
31 '(--version)--version[show version information and quit]' \
32 '(--warn)--warn[enable warnings]' \
33 '*:: :->subcmds' && return 0
40 '(--preprocess)--preprocess[run preprocessor]'
45 '(--diff)--diff[generate diff]'
50 '(--diff)--diff[generate diff]'
55 '(--force)--force[force creation of new site]'
60 '(--target)--target[specify the location to deploy to (default: `default`)]' \
61 '(--no-check)--no-check[do not run the issue checks marked for deployment]' \
62 '(--list)--list[list available locations to deploy to]' \
63 '(--list-deployers)--list-deployers[list available deployers]' \
64 '(--dry-run)--dry-run[show what would be deployed]'
69 '(--yes)--yes[confirm deletion]' \
70 '(--dry-run)--dry-run[print files to be deleted instead of actually deleting them]'
75 '(--preprocess)--preprocess[run preprocessor]'
80 '(--handler)--handler[specify the handler to use (webrick/mongrel/...)]' \
81 '(--host)--host[specify the host to listen on (default: 127.0.0.1)]' \
82 '(--port)--port[specify the port to listen on (default: 3000]' \
83 '(--live-reload)--live-reload[reload on changes]'
89 if (( CURRENT == 1 )); then
90 _describe -t commands "nanoc subcommand" _1st_arguments