4 # in order to make this work, you will need to have gatsby
5 # https://www.gatsbyjs.org/
7 local -a _1st_arguments
9 'develop:Start development server. Watches files, rebuilds, and hot reloads if something changes'
10 'build:Build a Gatsby project.'
11 'serve:Serve previously built Gatsby site.'
12 'info:Get environment information for debugging and issue reporting'
13 'clean:Wipe the local gatsby environment including built assets and cache'
14 'repl:Get a node repl with context of Gatsby environment, see (add docs link here)'
15 'new: [rootPath] [starter] Create new Gatsby project.'
16 'telemetry:Enable or disable Gatsby anonymous analytics collection.'
19 _arguments -C '*:: :->subcmds' && return 0
21 if (( CURRENT == 1 )); then
22 _describe -t commands "gatsby subcommand" _1st_arguments