You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: website/docs/commands/clean.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,4 +3,4 @@ title: Clean
3
3
sidebar_position: 16
4
4
---
5
5
6
-
The `clean` command deletes all of the files that are generated by `scala-cli`. This including the `.scala` directory where Scala CLI generated its output and stores its caches.
6
+
The `clean` command deletes all of the files that are generated by `scala-cli`. This includes the `.scala-build` directory where Scala CLI writes outputs and stores its caches.
The nightly builds of Scala compiler are unstable ones which are published on a nightly basis.
70
70
71
-
To use the latest Scala 2 and Scala 3 nightly builds, pass `2.nightly` and `3.nightly`, respectively.
71
+
To use the latest Scala 2 and Scala 3 nightly builds, pass `2.nightly` and `3.nightly`, respectively.
72
72
You can also request the last `2.12.nightly` and `2.13.nightly` versions. `2.13.nightly` is the same as `2.nightly`.
73
73
Moreover, passing the `3.{sub binary number}.nightly` format, such as `3.0.nightly` or `3.1.nightly` is accepted, too.
74
74
75
75
Scala CLI takes care of fetching the nightly builds of Scala 2 and Scala 3 from different repositories, without you having to pass their addresses as input after the `--repo` flag.
76
76
77
-
For compiling with the latest Scala 2 nightly build:
77
+
For compiling with the latest Scala 2 nightly build:
Copy file name to clipboardExpand all lines: website/docs/commands/fmt.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@ title: Format
3
3
sidebar_position: 15
4
4
---
5
5
6
-
Scala-cli supports formatting your code using [Scalafmt](https://scalameta.org/scalafmt/):
6
+
Scala CLI supports formatting your code using [Scalafmt](https://scalameta.org/scalafmt/):
7
7
8
8
```bash
9
9
scala-cli fmt
@@ -18,9 +18,9 @@ You can check formatting correctness using a `--check` flag:
18
18
scala-cli fmt --check
19
19
```
20
20
21
-
### Dialects
21
+
### Dialects
22
22
23
-
Scala-cli also supports dialects that are passed to the formatter.
23
+
Scala CLI also supports dialects that are passed to the formatter.
24
24
This value is only used if there is no `.scalafmt.conf` file.
25
25
However, if it exists, then all configuration should be placed there.
26
26
For a list of all possible values, consult the [official Scala Dialects documentation](https://scalameta.org/scalafmt/docs/configuration.html#scala-dialects):
At this time, `scala-cli` read a `scalafmt` version from `.scalafmt.conf` files. If the version is missing, `scala-cli`throws an error, that user should declare explicitly the Scalafmt version. From Scalafmt `3.5.0` it is a mandatory parameter.
34
+
At this time, Scala CLI reads a `scalafmt` version from `.scalafmt.conf` files. If the version is missing, Scala CLI throws an error, stating that users should declare an explicit Scalafmt version. Since Scalafmt `3.5.0`, this parameter is mandatory.
35
35
36
-
To configure the Scalafmt version add the following config into `.scalafmt.conf`. For example, to set version `3.5.0` you should add the following line:
36
+
To configure the Scalafmt version, add the following to `.scalafmt.conf`. For example, to set the version to `3.5.0`, add the following line:
0 commit comments