@@ -62,10 +62,10 @@ struct Install: SwiftlyCommand {
62
62
63
63
internal static func execute( version: ToolchainVersion ) async throws {
64
64
guard try ! Config. load ( ) . installedToolchains. contains ( version) else {
65
- print ( " \( version) is already installed, exiting. " )
65
+ SwiftlyCore . print ( " \( version) is already installed, exiting. " )
66
66
return
67
67
}
68
- print ( " Installing \( version) " )
68
+ SwiftlyCore . print ( " Installing \( version) " )
69
69
70
70
let tmpFile = Swiftly . currentPlatform. getTempFilePath ( )
71
71
FileManager . default. createFile ( atPath: tmpFile. path, contents: nil )
@@ -133,7 +133,7 @@ struct Install: SwiftlyCommand {
133
133
}
134
134
)
135
135
} catch _ as HTTP . DownloadNotFoundError {
136
- print ( " \( version) does not exist, exiting " )
136
+ SwiftlyCore . print ( " \( version) does not exist, exiting " )
137
137
return
138
138
} catch {
139
139
animation. complete ( success: false )
@@ -153,15 +153,15 @@ struct Install: SwiftlyCommand {
153
153
try await Use . execute ( version)
154
154
}
155
155
156
- print ( " \( version) installed successfully! " )
156
+ SwiftlyCore . print ( " \( version) installed successfully! " )
157
157
}
158
158
159
159
/// Utilize the GitHub API along with the provided selector to select a toolchain for install.
160
160
/// TODO: update this to use an official swift.org API
161
161
func resolve( selector: ToolchainSelector ) async throws -> ToolchainVersion {
162
162
switch selector {
163
163
case . latest:
164
- print ( " Fetching the latest stable Swift release... " )
164
+ SwiftlyCore . print ( " Fetching the latest stable Swift release... " )
165
165
166
166
guard let release = try await HTTP . getReleaseToolchains ( limit: 1 ) . first else {
167
167
throw Error ( message: " couldn't get latest releases " )
@@ -179,7 +179,7 @@ struct Install: SwiftlyCommand {
179
179
return . stable( ToolchainVersion . StableRelease ( major: major, minor: minor, patch: patch) )
180
180
}
181
181
182
- print ( " Fetching the latest stable Swift \( major) . \( minor) release... " )
182
+ SwiftlyCore . print ( " Fetching the latest stable Swift \( major) . \( minor) release... " )
183
183
// If a patch was not provided, perform a lookup to get the latest patch release
184
184
// of the provided major/minor version pair.
185
185
let toolchain = try await HTTP . getReleaseToolchains ( limit: 1 ) { release in
@@ -197,7 +197,7 @@ struct Install: SwiftlyCommand {
197
197
return ToolchainVersion ( snapshotBranch: branch, date: date)
198
198
}
199
199
200
- print ( " Fetching the latest \( branch) branch snapshot... " )
200
+ SwiftlyCore . print ( " Fetching the latest \( branch) branch snapshot... " )
201
201
// If a date was not provided, perform a lookup to find the most recent snapshot
202
202
// for the given branch.
203
203
let snapshot = try await HTTP . getSnapshotToolchains ( limit: 1 ) { snapshot in
0 commit comments