Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Documentation/SwiftlyDocs.docc/automated-install.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ If you want to install swiftly, or the binaries that it manages into different l

- term `SWIFTLY_HOME_DIR`: The location of the swiftly configuration files, and environment scripts
- term `SWIFTLY_BIN_DIR`: The location of the swiftly binary and toolchain symbolic links (for example swift, swiftc, and so on)
- term `TMPDIR`: The temporary directory swiftly uses to hold large files, such as downloads, until it cleans them up.

Sometimes swiftly can't automatically detect the system platform, or isn't supported by swift.
You can provide the platform as an option to the `swiftly init` subcommand:
Expand Down
6 changes: 5 additions & 1 deletion Documentation/SwiftlyDocs.docc/swiftly-cli-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,14 @@ Likewise, the latest snapshot associated with a given development branch can be
$ swiftly install 5.7-snapshot
$ swiftly install main-snapshot

Install whatever toolchain is currently selected, such as the the one in the .swift-version file:
Install whatever toolchain is currently selected, such as the the one in the .swift-version file:

$ swiftly install

NOTE: Swiftly downloads toolchains to a temporary file that it later cleans during its installation process. If these files are too big for your system temporary directory, set another location by setting the `TMPDIR` environment variable.

$ TMPDIR=/large/file/tmp/storage swiftly install latest


**--use:**

Expand Down
6 changes: 5 additions & 1 deletion Sources/Swiftly/Install.swift
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,13 @@ struct Install: SwiftlyCommand {
$ swiftly install 5.7-snapshot
$ swiftly install main-snapshot

Install whatever toolchain is currently selected, such as the the one in the .swift-version file:
Install whatever toolchain is currently selected, such as the the one in the .swift-version file:

$ swiftly install

NOTE: Swiftly downloads toolchains to a temporary file that it later cleans during its installation process. If these files are too big for your system temporary directory, set another location by setting the `TMPDIR` environment variable.

$ TMPDIR=/large/file/tmp/storage swiftly install latest
"""
))
var version: String?
Expand Down