2
0

_gatsby 833 B

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