Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Ohmyzsh
Commits
16154453
Commit
16154453
authored
Nov 28, 2019
by
Reza Hamouleh
Committed by
Marc Cornellà
Nov 28, 2019
Browse files
sbt: use new sbt command naming convention (#8426)
parent
6390afd6
Changes
3
Hide whitespace changes
Inline
Side-by-side
plugins/sbt/README.md
View file @
16154453
...
...
@@ -17,16 +17,16 @@ plugins=(... sbt)
| sbcln |
`sbt clean`
| Deletes all generated files |
| sbcc |
`sbt clean compile`
| Deletes generated files, compiles the main sources |
| sbco |
`sbt console`
| Starts Scala with the compiled sources and all dependencies |
| sbcq |
`sbt console
-q
uick`
| Starts Scala with all dependencies |
| sbcp |
`sbt console
-p
roject`
| Starts Scala with sbt and the build definitions |
| sbcq |
`sbt console
Q
uick`
| Starts Scala with all dependencies |
| sbcp |
`sbt console
P
roject`
| Starts Scala with sbt and the build definitions |
| sbd |
`sbt doc`
| Generates API documentation for Scala source files |
| sbdc |
`sbt dist:clean`
| Deletes the distribution packages |
| sbdi |
`sbt dist`
| Creates the distribution packages |
| sbgi |
`sbt gen
-i
dea`
| Create Idea project files |
| sbgi |
`sbt gen
I
dea`
| Create Idea project files |
| sbp |
`sbt publish`
| Publishes artifacts to the repository |
| sbpl |
`sbt publish
-l
ocal`
| Publishes artifacts to the local Ivy repository |
| sbpl |
`sbt publish
L
ocal`
| Publishes artifacts to the local Ivy repository |
| sbr |
`sbt run`
| Runs the main class for the project |
| sbrm |
`sbt run
-m
ain`
| Runs the specified main class for the project |
| sbrm |
`sbt run
M
ain`
| Runs the specified main class for the project |
| sbu |
`sbt update`
| Resolves and retrieves external dependencies |
| sbx |
`sbt test`
| Compiles and runs all tests |
| sba |
`sbt assembly`
| Create a fat JAR with all dependencies |
plugins/sbt/_sbt
View file @
16154453
...
...
@@ -6,23 +6,23 @@ _sbt_commands=(
'clean:delete files produced by the build'
'compile:compile sources'
'console:start the Scala REPL with project classes on the classpath'
'console
-q
uick:start the Scala REPL with project deps on the classpath'
'console
-p
roject:start the Scala REPL w/sbt+build-def on the classpath'
'console
Q
uick:start the Scala REPL with project deps on the classpath'
'console
P
roject:start the Scala REPL w/sbt+build-def on the classpath'
'dist:generate distribution artifacts'
'dist\:clean:clean distribution artifacts'
'doc:generate API documentation'
'gen
-i
dea:generate Intellij Idea project files'
'gen
I
dea:generate Intellij Idea project files'
'package:produce the main artifact, such as a binary jar'
'package
-d
oc:produce a doc artifact, such as a jar containing API docs'
'package
-s
rc:produce a source artifact, such as a jar containing sources'
'package
D
oc:produce a doc artifact, such as a jar containing API docs'
'package
S
rc:produce a source artifact, such as a jar containing sources'
'publish:publish artifacts to a repository'
'publish
-l
ocal:publish artifacts to the local repository'
'publish
-m
2:publish artifacts to the local Maven 2 repository'
'publish
L
ocal:publish artifacts to the local repository'
'publish
M
2:publish artifacts to the local Maven 2 repository'
'run:run a main class'
'run
-m
ain:run the main class selected by the first argument'
'run
M
ain:run the main class selected by the first argument'
'test:execute all tests'
'test
-o
nly:execute the tests provided as arguments'
'test
-q
uick:execute previously failed tests'
'test
O
nly:execute the tests provided as arguments'
'test
Q
uick:execute previously failed tests'
'update:resolve and optionally retrieve dependencies'
)
...
...
plugins/sbt/sbt.plugin.zsh
View file @
16154453
...
...
@@ -9,17 +9,17 @@
alias
sbc
=
'sbt compile'
alias
sbcc
=
'sbt clean compile'
alias
sbco
=
'sbt console'
alias
sbcq
=
'sbt console
-q
uick'
alias
sbcq
=
'sbt console
Q
uick'
alias
sbcln
=
'sbt clean'
alias
sbcp
=
'sbt console
-p
roject'
alias
sbcp
=
'sbt console
P
roject'
alias
sbd
=
'sbt doc'
alias
sbdc
=
'sbt dist:clean'
alias
sbdi
=
'sbt dist'
alias
sbgi
=
'sbt gen
-i
dea'
alias
sbgi
=
'sbt gen
I
dea'
alias
sbp
=
'sbt publish'
alias
sbpl
=
'sbt publish
-l
ocal'
alias
sbpl
=
'sbt publish
L
ocal'
alias
sbr
=
'sbt run'
alias
sbrm
=
'sbt run
-m
ain'
alias
sbrm
=
'sbt run
M
ain'
alias
sbu
=
'sbt update'
alias
sbx
=
'sbt test'
alias
sba
=
'sbt assembly'
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment