_zeus 1.0 KB

12345678910111213141516171819202122232425262728293031323334
  1. #compdef zeus
  2. #autoload
  3. # in order to make this work, you will need to have the gem zeus installed
  4. # zeus zsh completion, based on adb completion
  5. local -a _1st_arguments
  6. _1st_arguments=(
  7. 'console:Lets you interact with your Rails application from the command line. (alias = c)'
  8. 'cucumber:Runs cucumber.'
  9. 'dbconsole:Figures out which database you are using and drops you into whichever command line interface.'
  10. 'destroy:Figures out what generate did, and undoes it. (alias = d)'
  11. 'generate:Uses templates to create a whole lot of things. (alias = g)'
  12. 'rake:Execute rake tasks.'
  13. 'runner:Runs Ruby code in the context of Rails non-interactively. (alias = r)'
  14. 'server:Launches a small web server named WEBrick which comes bundled with Ruby. (alias = s)'
  15. 'start:Preloads the zeus environment'
  16. 'test:Runs RSpec tests. (alias = rspec, testrb)'
  17. 'version:Shows the version number.'
  18. )
  19. local expl
  20. local -a pkgs installed_pkgs
  21. _arguments \
  22. '*:: :->subcmds' && return 0
  23. if (( CURRENT == 1 )); then
  24. _describe -t commands "zeus subcommand" _1st_arguments
  25. return
  26. fi
  27. _files