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.

29 lines
1.9KB

  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 h -l help -d "Prints help information"
  23. complete -c gutenberg -n "__fish_using_command gutenberg build" -s V -l version -d "Prints version information"
  24. complete -c gutenberg -n "__fish_using_command gutenberg serve" -s h -l help -d "Prints help information"
  25. complete -c gutenberg -n "__fish_using_command gutenberg serve" -s V -l version -d "Prints version information"
  26. complete -c gutenberg -n "__fish_using_command gutenberg help" -s h -l help -d "Prints help information"
  27. complete -c gutenberg -n "__fish_using_command gutenberg help" -s V -l version -d "Prints version information"