You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
2.3KB

  1. function __fish_using_command
  2. set cmd (commandline -opc)
  3. if [ (count $cmd) -eq (count $argv) ]
  4. for i in (seq (count $argv))
  5. if [ $cmd[$i] != $argv[$i] ]
  6. return 1
  7. end
  8. end
  9. return 0
  10. end
  11. return 1
  12. end
  13. complete -c gutenberg -n "__fish_using_command gutenberg" -s c -l config -d 'Path to a config file other than config.toml'
  14. complete -c gutenberg -n "__fish_using_command gutenberg" -s h -l help -d 'Prints help information'
  15. complete -c gutenberg -n "__fish_using_command gutenberg" -s V -l version -d 'Prints version information'
  16. complete -c gutenberg -n "__fish_using_command gutenberg" -f -a "init" -d 'Create a new Gutenberg project'
  17. complete -c gutenberg -n "__fish_using_command gutenberg" -f -a "build" -d 'Builds the site'
  18. complete -c gutenberg -n "__fish_using_command gutenberg" -f -a "serve" -d 'Serve the site. Rebuild and reload on change automatically'
  19. complete -c gutenberg -n "__fish_using_command gutenberg" -f -a "help" -d 'Prints this message or the help of the given subcommand(s)'
  20. complete -c gutenberg -n "__fish_using_command gutenberg init" -s h -l help -d 'Prints help information'
  21. complete -c gutenberg -n "__fish_using_command gutenberg init" -s V -l version -d 'Prints version information'
  22. complete -c gutenberg -n "__fish_using_command gutenberg build" -s u -l base-url -d 'Force the base URL to be that value (default to the one in config.toml)'
  23. complete -c gutenberg -n "__fish_using_command gutenberg build" -s h -l help -d 'Prints help information'
  24. complete -c gutenberg -n "__fish_using_command gutenberg build" -s V -l version -d 'Prints version information'
  25. complete -c gutenberg -n "__fish_using_command gutenberg serve" -s i -l interface -d 'Interface to bind on'
  26. complete -c gutenberg -n "__fish_using_command gutenberg serve" -s p -l port -d 'Which port to use'
  27. complete -c gutenberg -n "__fish_using_command gutenberg serve" -s h -l help -d 'Prints help information'
  28. complete -c gutenberg -n "__fish_using_command gutenberg serve" -s V -l version -d 'Prints version information'
  29. complete -c gutenberg -n "__fish_using_command gutenberg help" -s h -l help -d 'Prints help information'
  30. complete -c gutenberg -n "__fish_using_command gutenberg help" -s V -l version -d 'Prints version information'