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: DESIGN.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -223,7 +223,7 @@ To use the latest installed main snapshot, leave off the date:
223
223
224
224
`swiftly use main-snapshot`
225
225
226
-
The use subcommand also supports `.swift-version` files. If a ".swift-version" file is present in the current working directory, or an ancestory directory, then swiftly will update that file with the new version to use. This can be a useful feature for a team to share and align on toolchain versions with git. As a special case, if swiftly could not find a version file, but it could find a Package.swift file it will create a new version file for you in the package and set that to the requested toolchain version.
226
+
The use subcommand also supports `.swift-version` files. If a ".swift-version" file is present in the current working directory, or an ancestry directory, then swiftly will update that file with the new version to use. This can be a useful feature for a team to share and align on toolchain versions with git. As a special case, if swiftly could not find a version file, but it could find a Package.swift file it will create a new version file for you in the package and set that to the requested toolchain version.
227
227
228
228
Note: The `.swift-version` file mechanisms can be overridden using the `--global-default` flag so that your swiftly installation's default toolchain can be set explicitly.
Copy file name to clipboardExpand all lines: Documentation/SwiftlyDocs.docc/automated-install.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -34,7 +34,7 @@ To begin using installed swiftly from your current shell, first run the followin
34
34
. "/root/.local/share/swiftly/env.sh"
35
35
```
36
36
37
-
> Note: on macOS systems you may need to run 'hash -r' to recalcuate the zsh PATH cache when installing swiftly and toolchains.
37
+
> Note: on macOS systems you may need to run 'hash -r' to recalculate the zsh PATH cache when installing swiftly and toolchains.
38
38
39
39
You can go ahead and add this command to the list of commands in your build script so that the build can proceed to call swiftly from the path. The usual next step is to install a specific swift toolchain like this:
Copy file name to clipboardExpand all lines: Documentation/SwiftlyDocs.docc/swiftly-cli-reference.md
+3-3
Original file line number
Diff line number
Diff line change
@@ -123,7 +123,7 @@ Likewise, the available toolchains associated with a given minor version can be
123
123
124
124
$ swiftly list-available 5.2
125
125
126
-
The installed snapshots for a given devlopment branch can be listed by specifying the branch as the selector:
126
+
The installed snapshots for a given development branch can be listed by specifying the branch as the selector:
127
127
128
128
$ swiftly list-available main-snapshot
129
129
$ swiftly list-available x.y-snapshot
@@ -301,7 +301,7 @@ Likewise, the installed toolchains associated with a given minor version can be
301
301
302
302
$ swiftly list 5.2
303
303
304
-
The installed snapshots for a given devlopment branch can be listed by specifying the branch as the selector:
304
+
The installed snapshots for a given development branch can be listed by specifying the branch as the selector:
305
305
306
306
$ swiftly list main-snapshot
307
307
$ swiftly list 5.7-snapshot
@@ -522,7 +522,7 @@ If the command that you are running needs the arguments with the '+' prefixes th
522
522
523
523
$ swiftly run ./myscript.sh ++abcde
524
524
525
-
The script will receive the argument as '+abcde'. If there are multiple arguments with the '+' prefix that should be escaped you can disable the selection using a '++' argument, which turns off any selector argument processing for subsequent arguments. This is anologous to the '--' that turns off flag and option processing for subsequent arguments in many argument parsers.
525
+
The script will receive the argument as '+abcde'. If there are multiple arguments with the '+' prefix that should be escaped you can disable the selection using a '++' argument, which turns off any selector argument processing for subsequent arguments. This is analogous to the '--' that turns off flag and option processing for subsequent arguments in many argument parsers.
throwSwiftlyError(message:"The selected toolchain \(selector.description) didn't match any of the installed toolchains. You can install it with `swiftly install \(selector.description)`")
// Abort on any errors relating to swift version files
81
-
if case let.swiftVersionFile(_, _, error)= result,let error = error {
81
+
if case let.swiftVersionFile(_, _, error)= result,let error {
82
82
throw error
83
83
}
84
84
85
85
toolchain = version
86
86
}
87
87
88
-
guardlet toolchain = toolchain else{
88
+
guardlet toolchain else{
89
89
throwSwiftlyError(message:"No installed swift toolchain is selected from either from a .swift-version file, or the default. You can try using one that's already installed with `swiftly use <toolchain version>` or install a new toolchain to use with `swiftly install --use <toolchain version>`.")
0 commit comments