]> src.twobees.de Git - dotfiles.git/blob - stow/oh-my-zsh/.oh-my-zsh/plugins/gatsby/_gatsby
66eb02f001dd3c0369b1fb7d58f5bdeb53f085e8
[dotfiles.git] / stow / oh-my-zsh / .oh-my-zsh / plugins / gatsby / _gatsby
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
7 local -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
21 if (( CURRENT == 1 )); then
22     _describe -t commands "gatsby subcommand" _1st_arguments
23     return
24 fi