Added all the lein commands

This commit is contained in:
Bruno Tavares 2012-06-25 12:22:53 -03:00
commit c17cffa409

View file

@ -5,19 +5,30 @@ function _lein_commands() {
case $state in case $state in
subcommand) subcommand)
subcommands=( subcommands=(
"clean:remove compiled files and dependencies from project" "classpath:Print the classpath of the current project"
"compile:ahead-of-time compile the project" "clean:Remove compiled class files and jars from project"
"deps:download and install all dependencies" "compile:Compile Clojure source into .class files"
"help:display a list of tasks or help for a given task" "deploy:Build jar and deploy to remote repository"
"install:install the project and its dependencies in your local repository" "deps:Download :dependencies and put them in :library-path"
"jar:create a jar file containing the compiled .class files" "help:Display a list of tasks or help for a given task"
"new:create a new project skeleton" "install:Install current project or download specified project"
"pom:write a pom.xml file to disk for maven interop" "interactive:Enter an interactive task shell. Aliased to 'int'"
"test:run the project's tests" "jar:Package up all the project's files into a jar file"
"uberjar:Create a jar including the contents of each of deps" "javac:Compile Java source files"
"upgrade:upgrade leiningen to the latest stable release" "new:Create a new project skeleton"
"version:print leiningen's version" "plugin:Manage user-level plugins"
) "pom:Write a pom.xml file to disk for Maven interop"
"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"
"test:Run the project's tests"
"test!:Run a project's tests after cleaning and fetching dependencies"
"trampoline:Run a task without nesting the project's JVM inside Leiningen's"
"uberjar:Package up the project files and all dependencies into a jar file"
"upgrade:Upgrade"
"version:Print version for Leiningen and the current JVM"
)
_describe -t subcommands 'leiningen subcommands' subcommands && ret=0 _describe -t subcommands 'leiningen subcommands' subcommands && ret=0
esac esac