Skip to content
This repository
branch: master
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 63 lines (58 sloc) 2.538 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62
#compdef lein
# ------------------------------------------------------------------------------
# Description
# -----------
#
# Completion script for Leiningen (https://github.com/technomancy/leiningen)
#
# Source: https://github.com/technolize/zsh-completion-funcs
#
# ------------------------------------------------------------------------------
# Authors
# -------
#
# * technolize (https://github.com/technolize)
#
# ------------------------------------------------------------------------------

local ret=1 state
_arguments ':subcommand:->subcommand' && ret=0

case $state in
  subcommand)
    subcommands=(
      "check:Check syntax and warn on reflection."
      "classpath:Print the classpath of the current project."
      "clean:Remove all files from project's target-path."
      "compile:Compile Clojure source into .class files."
      "deploy:Build and deploy jar to remote repository."
      "deps:Download all dependencies."
      "do:Higher-order task to perform other tasks in succession."
      "help:Display a list of tasks or help for a given task."
      "install:Install the current project to the local repository."
      "jack-in:Jack in to a Clojure SLIME session from Emacs."
      "jar:Package up all the project's files into a jar file."
      "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
esac

return ret

# Local Variables:
# mode: Shell-Script
# sh-indentation: 2
# indent-tabs-mode: nil
# sh-basic-offset: 2
# End:
# vim: ft=zsh sw=2 ts=2 et
Something went wrong with that request. Please try again.