Skip to content

Commit 5d0f49f

Browse files
committed
updated doc
1 parent 176e123 commit 5d0f49f

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

Documentation/SwiftlyDocs.docc/swiftly-cli-reference.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ swiftly [--version] [--help]
2323
Install a new toolchain.
2424

2525
```
26-
swiftly install [<version>] [--use] [--verify|no-verify] [--post-install-file=<post-install-file>] [--progress-file=<progress-file>] [--assume-yes] [--verbose] [--version] [--help]
26+
swiftly install [<version>] [--use] [--verify|no-verify] [--post-install-file=<post-install-file>] [--progress-file=<progress-file>] [--format=<format>] [--assume-yes] [--verbose] [--version] [--help]
2727
```
2828

2929
**version:**
@@ -89,6 +89,11 @@ Each progress entry contains timestamp, progress percentage, and a descriptive m
8989
The file must be writable, else an error will be thrown.
9090

9191

92+
**--format=\<format\>:**
93+
94+
*Output format (text, json)*
95+
96+
9297
**--assume-yes:**
9398

9499
*Disable confirmation prompts by assuming 'yes'*

Sources/Swiftly/Install.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -323,9 +323,9 @@ struct Install: SwiftlyCommand {
323323
{
324324
try JsonFileProgressReporter(ctx, filePath: progressFile)
325325
} else if ctx.format == .json {
326-
nil
327-
} else {
328326
ConsoleProgressReporter(stream: stderrStream, header: "Downloading \(version)")
327+
} else {
328+
ConsoleProgressReporter(stream: stdoutStream, header: "Downloading \(version)")
329329
}
330330

331331
defer {

0 commit comments

Comments
 (0)