Skip to content

Commit aa05b4d

Browse files
Formatting fixes
Co-authored-by: Jamie Thompson <[email protected]>
1 parent 1ab93d9 commit aa05b4d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

content/scala-cli.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,13 @@ Currently, to start a Scala REPL with a dependency on the class path, users need
4949

5050
With Scala CLI, starting a REPL with a given dependency is as simple as running:
5151

52-
```scala-cli repl --dep com.lihaoyi::os-lib:0.7.8```
52+
```
53+
scala-cli repl --dep com.lihaoyi::os-lib:0.7.8
54+
```
5355

5456
Compared to Ammonite, default Scala REPLs provided by Scala 2 and 3 - that Scala CLI uses by default - are somewhat limited. However, Scala CLI also offers to start Ammonite instead of the default Scala REPL, by passing `--ammonite` (or `--amm`) option to `scala-cli repl`.
5557

56-
Additionally, `scala-cli repl` can also put code from given files / directories / snippets on the class path by just providing their locations as arguments. Running ```scala-cli repl foo.scala baz``` will compile code from `foo.scala` and the `baz` directory, and put their classes on the REPL class path (including their dependencies, scalac options etc. defined within those files).
58+
Additionally, `scala-cli repl` can also put code from given files / directories / snippets on the class path by just providing their locations as arguments. Running `scala-cli repl foo.scala baz` will compile code from `foo.scala` and the `baz` directory, and put their classes on the REPL class path (including their dependencies, scalac options etc. defined within those files).
5759

5860
Compilation (and running scaladoc as well) benefit in a similar way from the ability to manage dependencies.
5961

0 commit comments

Comments
 (0)