Skip to content

Commit ae13ae6

Browse files
Merge pull request #1085 from alexarchambault/tweak-docs
Tweak docs
2 parents fea851a + 9778931 commit ae13ae6

File tree

23 files changed

+95
-97
lines changed

23 files changed

+95
-97
lines changed

modules/build/src/main/scala/scala/build/CrossSources.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ object CrossSources {
146146
.flatMap(_.valueFor(path).toSeq)
147147
.foldLeft(BuildRequirements())(_ orElse _)
148148

149-
// Scala-cli treats all `.test.scala` files tests as well as
149+
// Scala CLI treats all `.test.scala` files tests as well as
150150
// files from witin `test` subdirectory from provided input directories
151151
// If file has `using target <scope>` directive this take precendeces.
152152
if (

modules/cli-options/src/main/scala/scala/cli/commands/SharedCompilationServerOptions.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ final case class SharedCompilationServerOptions(
1313
@Hidden
1414
bloopBspProtocol: Option[String] = None,
1515
@Group("Compilation server")
16-
@HelpMessage("Socket file to use to open a BSP connection with Bloop (on Windows, a pipe name like \"`\\\\.\\pipe\\…`\")")
16+
@HelpMessage("Socket file to use to open a BSP connection with Bloop")
1717
@ValueDescription("path")
1818
@Hidden
1919
bloopBspSocket: Option[String] = None,

modules/cli-options/src/main/scala/scala/cli/commands/UpdateOptions.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import scala.cli.signing.shared.PasswordOption
66
import scala.cli.signing.util.ArgParsers._
77

88
// format: off
9-
@HelpMessage("Update scala-cli - it works only for installation script")
9+
@HelpMessage("Update scala-cli - only works when installed by the installation script")
1010
final case class UpdateOptions(
1111
@Recurse
1212
verbosity: VerbosityOptions = VerbosityOptions(),

modules/cli/src/main/scala/scala/cli/commands/InstallHome.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ object InstallHome extends ScalaCommand[InstallHomeOptions] {
1313

1414
private def logEqual(version: String) = {
1515
System.err.println(
16-
s"Scala-cli $version is already installed and up-to-date."
16+
s"Scala CLI $version is already installed and up-to-date."
1717
)
1818
sys.exit(0)
1919
}

modules/integration/src/test/scala/scala/cli/integration/NativePackagerTests.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ class NativePackagerTests extends munit.FunSuite {
215215
"--output", s"$appName.msi",
216216
"--product-name", "scala-cli",
217217
"--license-path", licencePath,
218-
"--maintainer", "Scala-cli",
218+
"--maintainer", "Scala-CLI",
219219
"--launcher-app", appName,
220220
"--suppress-validation"
221221
)

website/docs/commands/basics.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ In our experience, `scala-cli .` is the most used command; it compiles and runs
120120
:::note
121121
Scala CLI process all files within the specified directories and all of its subdirectories.
122122

123-
Scala CLI ignores all subdirectories that start with `.` like `.scala` or `.vscode`.
123+
Scala CLI ignores all subdirectories that start with `.` like `.scala-build` or `.vscode`.
124124
Such directories needs to be explicitly provided as inputs.
125125
:::
126126

@@ -161,7 +161,7 @@ object Hello extends App {
161161
}
162162
```
163163
```bash ignore
164-
unzip -l hello.zip
164+
unzip -l hello.zip
165165
# Archive: hello.zip
166166
# Length Date Time Name
167167
# --------- ---------- ----- ----
@@ -201,7 +201,7 @@ Running another Scala CLI version might be slower because it uses JVM-based Scal
201201

202202
To run another Scala CLI version, specify it with `--cli-version` before any other argument:
203203

204-
```bash
204+
```bash
205205
scala-cli --cli-version 0.1.3-51-g4d314eee-SNAPSHOT about
206206
# Scala CLI version 0.1.3-51-g4d314eee-SNAPSHOT
207207
```
@@ -212,7 +212,7 @@ Scala CLI version 0.1.3-51-g4d314eee-SNAPSHOT
212212

213213
To use the latest Scala CLI nightly build, pass `nightly` to `--cli-version` parameter:
214214

215-
```bash
215+
```bash
216216
scala-cli --cli-version nightly about
217217
# Scala CLI version 0.1.3-8-g431cc15f-SNAPSHOT
218218
```

website/docs/commands/clean.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ title: Clean
33
sidebar_position: 16
44
---
55

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.

website/docs/commands/compile.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,15 @@ Note that most Scala CLI commands automatically compile your code, if necessary.
2020
The `compile` command is useful if you'd like to check that your code compiles,
2121
or know of compilation warnings, without running it or packaging it.
2222

23-
The most common `compile` options are shown below.
23+
The most common `compile` options are shown below.
2424
For a full list of options, run `scala-cli compile --help`, or check the options linked in the
2525
[reference documentation](../reference/commands.md#compile).
2626

2727
## Test scope
2828

2929
`--test` makes `scala-cli` compile main and test scopes:
3030
```bash ignore
31-
scala-cli compile --test Hello.scala
31+
scala-cli compile --test Hello.scala
3232
```
3333

3434
## Watch mode
@@ -68,13 +68,13 @@ scala-cli compile --scala 3 Hello.scala
6868

6969
The nightly builds of Scala compiler are unstable ones which are published on a nightly basis.
7070

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.
7272
You can also request the last `2.12.nightly` and `2.13.nightly` versions. `2.13.nightly` is the same as `2.nightly`.
7373
Moreover, passing the `3.{sub binary number}.nightly` format, such as `3.0.nightly` or `3.1.nightly` is accepted, too.
7474

7575
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.
7676

77-
For compiling with the latest Scala 2 nightly build:
77+
For compiling with the latest Scala 2 nightly build:
7878
```bash
7979
scala-cli Hello.scala -S 2.nightly
8080
```
@@ -84,7 +84,7 @@ scala-cli Hello.scala -S 3.nightly
8484
```
8585
For compiling with an specific nightly build, you have the full version for:
8686
```bash
87-
scala-cli Hello.scala -S 2.13.9-bin-4505094
87+
scala-cli Hello.scala -S 2.13.9-bin-4505094
8888
```
8989

9090
For adding this inside scala files with [using directives](../guides/using-directives.md), use:
@@ -125,11 +125,11 @@ Most [Scala compiler options](https://docs.scala-lang.org/overviews/compiler-opt
125125

126126
```bash
127127
scala-cli compile Hello.scala -Xlint:infer-any
128-
# Compiling project_b729aa2200-cef76d561e (1 Scala source)
128+
# Compiling project (1 Scala source)
129129
# [warn] ./Hello.scala:2:11: a type was inferred to be `Any`; this may indicate a programming error.
130130
# [warn] val l = List("a", true, 2, new Object)
131131
# [warn] ^
132-
# Compiled 'project_b729aa2200-cef76d561e'
132+
# Compiled project
133133
```
134134

135135
All `scala-cli` options that start with:
@@ -163,7 +163,7 @@ You can also view the Scala compiler help for a particular Scala version with `-
163163
```bash
164164
scala-cli -S 2.13.8 --scalac-help
165165
# Usage: scalac <options> <source files>
166-
#
166+
#
167167
# Standard options:
168168
# -Dproperty=value Pass -Dproperty=value directly to the runtime system.
169169
# -J<flag> Pass <flag> directly to the runtime system.

website/docs/commands/fmt.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Format
33
sidebar_position: 15
44
---
55

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/):
77

88
```bash
99
scala-cli fmt
@@ -18,9 +18,9 @@ You can check formatting correctness using a `--check` flag:
1818
scala-cli fmt --check
1919
```
2020

21-
### Dialects
21+
### Dialects
2222

23-
Scala-cli also supports dialects that are passed to the formatter.
23+
Scala CLI also supports dialects that are passed to the formatter.
2424
This value is only used if there is no `.scalafmt.conf` file.
2525
However, if it exists, then all configuration should be placed there.
2626
For a list of all possible values, consult the [official Scala Dialects documentation](https://scalameta.org/scalafmt/docs/configuration.html#scala-dialects):
@@ -31,9 +31,9 @@ scala-cli fmt --dialect scala212
3131

3232
### Scalafmt version
3333

34-
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.
3535

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:
3737

3838
```
3939
version = "3.5.0"

website/docs/commands/package.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ docker run hello-docker
132132
Hello from Docker
133133
-->
134134

135-
You can also create Docker images for the Scala.js and Scala Native environments.
135+
You can also create Docker images for Scala.js and Scala Native applications.
136136
This command shows how to create a Docker image (`--docker`) for a Scala.js (`--js`) application:
137137

138138
```bash
@@ -185,7 +185,7 @@ Hello
185185
-->
186186

187187

188-
Note that the Scala CLI doesn't offer to link the resulting JavaScript with linkers, such as Webpack (yet).
188+
Note that Scala CLI doesn't offer to link the resulting JavaScript with linkers, such as Webpack (yet).
189189

190190
## Native image
191191

@@ -321,7 +321,7 @@ scala-cli package --rpm --output 'path.rpm' Hello.scala
321321

322322
### macOS (PKG)
323323

324-
PKG is the software package format for macOS.
324+
PKG is a software package format for macOS.
325325
To build a PKG you will need to have [`pkgbuild`](https://www.unix.com/man-page/osx/1/pkgbuild/) installed.
326326

327327
Example:
@@ -341,13 +341,13 @@ Example:
341341
342342
### Windows
343343
344-
MSI is the software package format for Windows distributions.
345-
To build a Windows installer, you will need to have [`WIX Toolset`](https://wixtoolset.org/) installed.
344+
MSI is a software package format for Windows.
345+
To build an MSI installer, you will need to have [`WIX Toolset`](https://wixtoolset.org/) installed.
346346
347347
Example:
348348
349349
```cmd
350-
scala-cli package --msi --output 'path.msi` Hello.scala
350+
scala-cli package --msi --output path.msi Hello.scala
351351
```
352352
353353
#### Mandatory arguments

0 commit comments

Comments
 (0)