_gatsby
833 bytes
1#compdef gatsby
2#autoload
3
4# in order to make this work, you will need to have gatsby
5# https://www.gatsbyjs.org/
6
7local -a _1st_arguments
8_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.'
17)
18
19_arguments -C '*:: :->subcmds' && return 0
20
21if (( CURRENT == 1 )); then
22 _describe -t commands "gatsby subcommand" _1st_arguments
23 return
24fi