lein.plugin.zsh 1.0 KB

123456789101112131415161718192021222324252627
  1. function _lein_commands() {
  2. local ret=1 state
  3. _arguments ':subcommand:->subcommand' && ret=0
  4. case $state in
  5. subcommand)
  6. subcommands=(
  7. "clean:remove compiled files and dependencies from project"
  8. "compile:ahead-of-time compile the project"
  9. "deps:download and install all dependencies"
  10. "help:display a list of tasks or help for a given task"
  11. "install:install the project and its dependencies in your local repository"
  12. "jar:create a jar file containing the compiled .class files"
  13. "new:create a new project skeleton"
  14. "pom:write a pom.xml file to disk for maven interop"
  15. "test:run the project's tests"
  16. "uberjar:Create a jar including the contents of each of deps"
  17. "upgrade:upgrade leiningen to the latest stable release"
  18. "version:print leiningen's version"
  19. )
  20. _describe -t subcommands 'leiningen subcommands' subcommands && ret=0
  21. esac
  22. return ret
  23. }
  24. compdef _lein_commands lein