update leiningen completion for lein 2

This commit is contained in:
Lee Hinman 2012-10-23 10:56:33 -06:00
parent b70c7f9799
commit af82b11240
1 changed files with 26 additions and 13 deletions

View File

@ -15,25 +15,38 @@
# #
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------
local ret=1 state local ret=1 state
_arguments ':subcommand:->subcommand' && ret=0 _arguments ':subcommand:->subcommand' && ret=0
case $state in case $state in
subcommand) subcommand)
subcommands=( subcommands=(
"clean:remove compiled files and dependencies from project" "check:Check syntax and warn on reflection."
"compile:ahead-of-time compile the project" "classpath:Print the classpath of the current project."
"deps:download and install all dependencies" "clean:Remove all files from project's target-path."
"help:display a list of tasks or help for a given task" "compile:Compile Clojure source into .class files."
"install:install the project and its dependencies in your local repository" "deploy:Build and deploy jar to remote repository."
"jar:create a jar file containing the compiled .class files" "deps:Download all dependencies."
"new:create a new project skeleton" "do:Higher-order task to perform other tasks in succession."
"pom:write a pom.xml file to disk for maven interop" "help:Display a list of tasks or help for a given task."
"test:run the project's tests" "install:Install the current project to the local repository."
"uberjar:Create a jar including the contents of each of deps" "jack-in:Jack in to a Clojure SLIME session from Emacs."
"upgrade:upgrade leiningen to the latest stable release" "jar:Package up all the project's files into a jar file."
"version:print leiningen's version" "javac:Compile Java source files."
"new:Generate project scaffolding based on a template."
"pom:Write a pom.xml file to disk for Maven interoperability."
"pprint:Pretty-print a representation of the project map."
"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 a -main function with optional command-line arguments."
"search:Search remote maven repositories for matching jars."
"show-profiles:List all available profiles or display one if given an argument."
"test:Run the project's tests."
"trampoline:Run a task without nesting the project's JVM inside Leiningen's."
"uberjar:Package up the project files and dependencies into a jar file."
"upgrade:Upgrade Leiningen to specified version or latest stable."
"version:Print version for Leiningen and the current JVM."
"with-profile:Apply the given task with the profile(s) specified."
) )
_describe -t subcommands 'leiningen subcommands' subcommands && ret=0 _describe -t subcommands 'leiningen subcommands' subcommands && ret=0
esac esac