diff options
author | Robby Russell <robby@planetargon.com> | 2013-04-23 19:46:09 -0700 |
---|---|---|
committer | Robby Russell <robby@planetargon.com> | 2013-04-23 19:46:09 -0700 |
commit | e953fcf5167cc249ac9d818befc956437727a96e (patch) | |
tree | 94921822e9f042063a5dc7af6e3c534b013c1a5a /plugins | |
parent | 81ed18f722f5a1bd144cc36b2f8f8666b6485b0f (diff) | |
parent | d537193f262d277158f01bd319bfe76d154b751d (diff) | |
download | zsh-e953fcf5167cc249ac9d818befc956437727a96e.tar.gz zsh-e953fcf5167cc249ac9d818befc956437727a96e.tar.bz2 zsh-e953fcf5167cc249ac9d818befc956437727a96e.zip |
Merge pull request #1749 from johnjohndoe/feature/zeus-auto-completion
Add auto-completion for zeus.
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/zeus/_zeus | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/plugins/zeus/_zeus b/plugins/zeus/_zeus new file mode 100644 index 000000000..5a13bd9ec --- /dev/null +++ b/plugins/zeus/_zeus @@ -0,0 +1,34 @@ +#compdef zeus +#autoload + +# in order to make this work, you will need to have the gem zeus installed + +# zeus zsh completion, based on adb completion + +local -a _1st_arguments +_1st_arguments=( +'console:Lets you interact with your Rails application from the command line. (alias = c)' +'cucumber:Runs cucumber.' +'dbconsole:Figures out which database you are using and drops you into whichever command line interface.' +'destroy:Figures out what generate did, and undoes it. (alias = d)' +'generate:Uses templates to create a whole lot of things. (alias = g)' +'rake:Execute rake tasks.' +'runner:Runs Ruby code in the context of Rails non-interactively. (alias = r)' +'server:Launches a small web server named WEBrick which comes bundled with Ruby. (alias = s)' +'start:Preloads the zeus environment' +'test:Runs RSpec tests. (alias = rspec, testrb)' +'version:Shows the version number.' +) + +local expl +local -a pkgs installed_pkgs + +_arguments \ + '*:: :->subcmds' && return 0 + +if (( CURRENT == 1 )); then + _describe -t commands "zeus subcommand" _1st_arguments + return +fi + +_files |