summaryrefslogtreecommitdiff
path: root/plugins/lein/lein.plugin.zsh
diff options
context:
space:
mode:
authorRoman Kamyk <roman.kamyk@gmail.com>2011-05-12 13:40:07 +0200
committerRoman Kamyk <roman.kamyk@gmail.com>2011-05-12 13:40:07 +0200
commitf71647fa85267d558d0d69034902f53aeeed67ad (patch)
treee48c05b9de6c435ccb5df37c6d0a5b4c351b380e /plugins/lein/lein.plugin.zsh
parentdccfdf7dbf707b2e860fde1b6540e66ec6bda207 (diff)
parent0365ef0529ddfb912ca8202773e45916c55fdf4f (diff)
downloadzsh-f71647fa85267d558d0d69034902f53aeeed67ad.tar.gz
zsh-f71647fa85267d558d0d69034902f53aeeed67ad.tar.bz2
zsh-f71647fa85267d558d0d69034902f53aeeed67ad.zip
Merge branch 'master' of http://github.com/robbyrussell/oh-my-zsh
Diffstat (limited to 'plugins/lein/lein.plugin.zsh')
-rw-r--r--plugins/lein/lein.plugin.zsh27
1 files changed, 27 insertions, 0 deletions
diff --git a/plugins/lein/lein.plugin.zsh b/plugins/lein/lein.plugin.zsh
new file mode 100644
index 000000000..19af3556a
--- /dev/null
+++ b/plugins/lein/lein.plugin.zsh
@@ -0,0 +1,27 @@
+function _lein_commands() {
+ local ret=1 state
+ _arguments ':subcommand:->subcommand' && ret=0
+
+ case $state in
+ subcommand)
+ subcommands=(
+ "clean:remove compiled files and dependencies from project"
+ "compile:ahead-of-time compile the project"
+ "deps:download and install all dependencies"
+ "help:display a list of tasks or help for a given task"
+ "install:install the project and its dependencies in your local repository"
+ "jar:create a jar file containing the compiled .class files"
+ "new:create a new project skeleton"
+ "pom:write a pom.xml file to disk for maven interop"
+ "test:run the project's tests"
+ "uberjar:Create a jar including the contents of each of deps"
+ "upgrade:upgrade leiningen to the latest stable release"
+ "version:print leiningen's version"
+ )
+ _describe -t subcommands 'leiningen subcommands' subcommands && ret=0
+ esac
+
+ return ret
+}
+
+compdef _lein_commands lein