| 
									
										
										
										
											2011-03-02 15:20:43 +05:30
										 |  |  | function _lein_commands() { | 
					
						
							|  |  |  |     local ret=1 state | 
					
						
							|  |  |  |     _arguments ':subcommand:->subcommand' && ret=0 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     case $state in | 
					
						
							|  |  |  |       subcommand) | 
					
						
							|  |  |  |         subcommands=( | 
					
						
							| 
									
										
										
										
											2012-04-04 19:52:14 +02:00
										 |  |  |           "classpath:print the classpath of the current project" | 
					
						
							| 
									
										
										
										
											2011-03-02 15:20:43 +05:30
										 |  |  |           "clean:remove compiled files and dependencies from project" | 
					
						
							|  |  |  |           "compile:ahead-of-time compile the project" | 
					
						
							| 
									
										
										
										
											2012-04-04 19:52:14 +02:00
										 |  |  |           "deploy:build jar and deploy to remote repository" | 
					
						
							| 
									
										
										
										
											2011-03-02 15:20:43 +05:30
										 |  |  |           "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" | 
					
						
							| 
									
										
										
										
											2012-04-04 19:52:14 +02:00
										 |  |  |           "int:enter an interactive task shell" | 
					
						
							|  |  |  |           "interactive:enter an interactive task shell" | 
					
						
							|  |  |  |           "jack-in:jack in to a clojure slime session from emacs." | 
					
						
							| 
									
										
										
										
											2011-03-02 15:20:43 +05:30
										 |  |  |           "jar:create a jar file containing the compiled .class files" | 
					
						
							| 
									
										
										
										
											2012-04-04 19:52:14 +02:00
										 |  |  |           "javac:compile java source files" | 
					
						
							| 
									
										
										
										
											2011-03-02 15:20:43 +05:30
										 |  |  |           "new:create a new project skeleton" | 
					
						
							| 
									
										
										
										
											2012-04-04 19:52:14 +02:00
										 |  |  |           "plugin:manage user-level plugins" | 
					
						
							| 
									
										
										
										
											2011-03-02 15:20:43 +05:30
										 |  |  |           "pom:write a pom.xml file to disk for maven interop" | 
					
						
							| 
									
										
										
										
											2012-04-04 19:52:14 +02:00
										 |  |  |           "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" | 
					
						
							| 
									
										
										
										
											2011-03-02 15:20:43 +05:30
										 |  |  |           "test:run the project's tests" | 
					
						
							| 
									
										
										
										
											2012-04-04 19:52:14 +02:00
										 |  |  |           "test!:run a project's tests after cleaning and fetching dependencies" | 
					
						
							|  |  |  |           "trampoline:run a task without nesting the project's JVM inside Leiningen's." | 
					
						
							| 
									
										
										
										
											2011-03-02 15:20:43 +05:30
										 |  |  |           "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 |