lein.plugin.zsh 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. function _lein_commands() {
  2. local ret=1 state
  3. _arguments ':subcommand:->subcommand' && ret=0
  4. case $state in
  5. subcommand)
  6. subcommands=(
  7. "classpath:print the classpath of the current project"
  8. "clean:remove compiled files and dependencies from project"
  9. "compile:ahead-of-time compile the project"
  10. "deploy:build jar and deploy to remote repository"
  11. "deps:download and install all dependencies"
  12. "help:display a list of tasks or help for a given task"
  13. "install:install the project and its dependencies in your local repository"
  14. "int:enter an interactive task shell"
  15. "interactive:enter an interactive task shell"
  16. "jack-in:jack in to a clojure slime session from emacs."
  17. "jar:create a jar file containing the compiled .class files"
  18. "javac:compile java source files"
  19. "new:create a new project skeleton"
  20. "plugin:manage user-level plugins"
  21. "pom:write a pom.xml file to disk for maven interop"
  22. "repl:start a repl session either with the current project or standalone"
  23. "retest:run only the test namespaces which failed last time around"
  24. "run:run the project's -main function"
  25. "search:search remote maven repositories for matching jars"
  26. "swank:launch swank server for Emacs to connect"
  27. "test:run the project's tests"
  28. "test!:run a project's tests after cleaning and fetching dependencies"
  29. "trampoline:run a task without nesting the project's JVM inside Leiningen's."
  30. "uberjar:Create a jar including the contents of each of deps"
  31. "upgrade:upgrade leiningen to the latest stable release"
  32. "version:print leiningen's version"
  33. )
  34. _describe -t subcommands 'leiningen subcommands' subcommands && ret=0
  35. esac
  36. return ret
  37. }
  38. compdef _lein_commands lein