lein.plugin.zsh 1.89 KB
Newer Older
Sankara Rameswaran's avatar
Sankara Rameswaran committed
1
2
3
4
5
6
7
function _lein_commands() {
    local ret=1 state
    _arguments ':subcommand:->subcommand' && ret=0

    case $state in
      subcommand)
        subcommands=(
8
          "classpath:print the classpath of the current project"
Sankara Rameswaran's avatar
Sankara Rameswaran committed
9
10
          "clean:remove compiled files and dependencies from project"
          "compile:ahead-of-time compile the project"
11
          "deploy:build jar and deploy to remote repository"
Sankara Rameswaran's avatar
Sankara Rameswaran committed
12
13
14
          "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"
15
16
17
          "int:enter an interactive task shell"
          "interactive:enter an interactive task shell"
          "jack-in:jack in to a clojure slime session from emacs."
Sankara Rameswaran's avatar
Sankara Rameswaran committed
18
          "jar:create a jar file containing the compiled .class files"
19
          "javac:compile java source files"
Sankara Rameswaran's avatar
Sankara Rameswaran committed
20
          "new:create a new project skeleton"
21
          "plugin:manage user-level plugins"
Sankara Rameswaran's avatar
Sankara Rameswaran committed
22
          "pom:write a pom.xml file to disk for maven interop"
23
24
25
26
27
          "repl:start a repl session either with the current project or standalone"
          "retest:run only the test namespaces which failed last time around"
          "run:run the project's -main function"
          "search:search remote maven repositories for matching jars"
          "swank:launch swank server for Emacs to connect"
Sankara Rameswaran's avatar
Sankara Rameswaran committed
28
          "test:run the project's tests"
29
30
          "test!:run a project's tests after cleaning and fetching dependencies"
          "trampoline:run a task without nesting the project's JVM inside Leiningen's."
Sankara Rameswaran's avatar
Sankara Rameswaran committed
31
32
33
34
35
36
37
38
39
40
41
          "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