d03a6176aacd583993c02c7e837d10751c431875

Author
Sankara Rameswaran <sankara@bankbazaar.com>
Committer
Sankara Rameswaran <sankara@bankbazaar.com>
Date

Message

Lein completion

Diff

 1diff --git a/plugins/lein/lein.plugin.zsh b/plugins/lein/lein.plugin.zsh
 2new file mode 100644
 3index 0000000000000000000000000000000000000000..19af3556a662b89a55a6b00e022a8018953cddd3
 4--- /dev/null
 5+++ b/plugins/lein/lein.plugin.zsh
 6@@ -0,0 +1,27 @@
 7+function _lein_commands() {
 8+    local ret=1 state
 9+    _arguments ':subcommand:->subcommand' && ret=0
10+
11+    case $state in
12+      subcommand)
13+        subcommands=(
14+          "clean:remove compiled files and dependencies from project"
15+          "compile:ahead-of-time compile the project"
16+          "deps:download and install all dependencies"
17+          "help:display a list of tasks or help for a given task"
18+          "install:install the project and its dependencies in your local repository"
19+          "jar:create a jar file containing the compiled .class files"
20+          "new:create a new project skeleton"
21+          "pom:write a pom.xml file to disk for maven interop"
22+          "test:run the project's tests"
23+          "uberjar:Create a jar including the contents of each of deps"
24+          "upgrade:upgrade leiningen to the latest stable release"
25+          "version:print leiningen's version"
26+        )
27+        _describe -t subcommands 'leiningen subcommands' subcommands && ret=0
28+    esac
29+
30+    return ret
31+}
32+
33+compdef _lein_commands lein