8000 simplify sbt cheatsheet · rysh/docs.scala-lang@d4d428e · GitHub
[go: up one dir, main page]

Skip to content

Commit d4d428e

Browse files
committed
simplify sbt cheatsheet
1 parent c32e97d commit d4d428e

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

_overviews/scala3-contribution/procedures-cheatsheet.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,19 @@ For more in-depth explanations, see the rest of this chapter.
1212

1313
## sbt Commands
1414

15-
The following commands can be run within `sbt` in the dotty directory.
15+
The following commands can be run within `sbt` in the dotty directory:
1616

17-
| Command | Description |
18-
|------------------------------------|------------------------------------------------------------------|
19-
| `scala3-bootstrapped/test` | Run all tests for Scala 3 |
20-
| `scala3-bootstrapped/publishLocal` | Build Scala 3 for use in local projects |
21-
| `scala3/scalac local/Foo.scala` | Compile the given file – path relative to the dotty directory. |
22-
| `scala3/scala Foo` | Run class `Foo` with dotty directory on the classpath |
23-
| `repl` | Start a REPL with the bootstrapped compiler |
24-
| `testCompilation tests/pos` | Run test suites on files in the `tests/pos` directory. |
25-
| <code>testOnly<br/>dotty.tools.dotc.CompilationTests<br/>-- *pos</code 8000 > | Run test `pos` from `CompilationTests` suite. |
26-
| <code>scala3-compiler/Test/runMain<br/>dotty.tools.printTypes</code> | Print types underlying representation |
27-
| <code>scala3/scalac -print-tasty<br/>local/out/Foo.tasty</code> | Print the TASTy of top-level class `Foo` |
17+
| Commands |
18+
|-----------------------------------------------------------------------------------------------|
19+
| `testCompilation` Run compilation tests on files that match the first argument. |
20+
| `scala3/scalac` Run the compiler directly, with any current changes. |
21+
| `scala3/scala` Run the main method of a given class name. |
22+
| `repl` Start a REPL with the bootstrapped compiler. |
23+
| `testOnly *CompilationTests -- *pos` Run test `pos` from the compilation test suite. |
24+
| `scala3-compiler/Test/runMain dotty.tools.printTypes` Print types underlying representation |
25+
| `scala3/scalac -print-tasty Foo.tasty` Print the TASTy of top-level class `Foo` |
26+
| `scala3-bootstrapped/test` Run all tests for Scala 3. (Slow, recommended for CI only) |
27+
| `scala3-bootstrapped/publishLocal` Build Scala 3 locally. (Use to debug a specific project) |
2828

2929
## Shell Commands
3030

0 commit comments

Comments
 (0)
0