6 'clean:delete files produced by the build'
7 'compile:compile sources'
8 'console:start the Scala REPL with project classes on the classpath'
9 'consoleQuick:start the Scala REPL with project deps on the classpath'
10 'consoleProject:start the Scala REPL w/sbt+build-def on the classpath'
11 'dist:generate distribution artifacts'
12 'dist\:clean:clean distribution artifacts'
13 'doc:generate API documentation'
14 'genIdea:generate Intellij Idea project files'
15 'package:produce the main artifact, such as a binary jar'
16 'packageDoc:produce a doc artifact, such as a jar containing API docs'
17 'packageSrc:produce a source artifact, such as a jar containing sources'
18 'publish:publish artifacts to a repository'
19 'publishLocal:publish artifacts to the local repository'
20 'publishM2:publish artifacts to the local Maven 2 repository'
21 'run:run a main class'
22 'runMain:run the main class selected by the first argument'
23 'test:execute all tests'
24 'testOnly:execute the tests provided as arguments'
25 'testQuick:execute previously failed tests'
26 'update:resolve and optionally retrieve dependencies'
32 '(-help)-h[prints an help message]' \
33 '(-h)-help[prints an help message]' \
34 '(-verbose)-v[this runner is chattier]' \
35 '(-v)-verbose[this runner is chattier]' \
36 '(-debug)-d[set sbt log level to debug]' \
37 '(-d)-debug[set sbt log level to debug]' \
38 '-no-colors[disable ANSI color codes]' \
39 '-sbt-create[start even if current dir contains no sbt project]' \
40 '-sbt-dir[path to global settings/plugins dir (default: ~/.sbt)]' \
41 '-sbt-boot[path to shared boot dir (default: ~/.sbt/boot)]' \
42 '-ivy[path to local Ivy repository (default: ~/.ivy2)]' \
43 '-mem[set memory options]' \
44 '-no-share[use all local caches; no sharing]' \
45 '-no-global[use global caches, but do not use global ~/.sbt dir]' \
46 '-jvm-debug[turn on JVM debugging, open at the given port]' \
47 '-batch[disable interactive mode]' \
48 '-sbt-version[use the specified version of sbt]' \
49 '-sbt-jar[use the specified jar as the sbt launcher]' \
50 '(-sbt-snapshot)-sbt-rc[use an RC version of sbt]' \
51 '(-sbt-rc)-sbt-snapshot[use a snapshot version of sbt]' \
52 '-java-home[alternate JAVA_HOME]' \
53 '*:: :->subcmds' && return 0
55 _describe -t commands "sbt subcommand" _sbt_commands