diff options
author | Tristan Carel <tcarel@exalead.com> | 2011-10-10 14:58:28 +0200 |
---|---|---|
committer | Tristan Carel <tcarel@exalead.com> | 2011-10-10 14:58:28 +0200 |
commit | db90589c8a02e98e657af17bb0b460b752d9ed61 (patch) | |
tree | d1354a9338bf9921ad0f66d2f5394272e1cfec77 /plugins/lein/lein.plugin.zsh | |
parent | 7066bf7c6b522af9147ebf03c00361c4c6490d42 (diff) | |
parent | 57f04b921ea1c12a0a283331778848cd4011bf21 (diff) | |
download | zsh-db90589c8a02e98e657af17bb0b460b752d9ed61.tar.gz zsh-db90589c8a02e98e657af17bb0b460b752d9ed61.tar.bz2 zsh-db90589c8a02e98e657af17bb0b460b752d9ed61.zip |
Merge remote-tracking branch 'upstream/master' into emacs
Conflicts:
plugins/emacs/emacs.plugin.zsh
plugins/emacs/emacsclient.sh
Diffstat (limited to 'plugins/lein/lein.plugin.zsh')
-rw-r--r-- | plugins/lein/lein.plugin.zsh | 27 |
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 |