d537193f262d277158f01bd319bfe76d154b751d

Author
Tobias Preuss <tobias.preuss@googlemail.com>
Committer
Tobias Preuss <tobias.preuss@googlemail.com>
Date

Message

Add auto-completion for zeus.

Diff

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