Skip to content

Commit 20b6a62

Browse files
committed
Format code
1 parent 85c49df commit 20b6a62

File tree

6 files changed

+9
-8
lines changed

6 files changed

+9
-8
lines changed

Sources/Swiftly/Install.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,8 @@ struct Install: SwiftlyCommand {
196196
selector = try ToolchainSelector(parsing: version)
197197
} else {
198198
if case let (_, result) = try await selectToolchain(ctx, config: &config),
199-
case let .swiftVersionFile(_, sel, error) = result {
199+
case let .swiftVersionFile(_, sel, error) = result
200+
{
200201
if let sel = sel {
201202
selector = sel
202203
} else if let error = error {

Sources/Swiftly/Link.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import ArgumentParser
2-
import SwiftlyCore
32
import Foundation
3+
import SwiftlyCore
44

55
struct Link: SwiftlyCommand {
66
public static let configuration = CommandConfiguration(

Sources/Swiftly/Swiftly.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public struct Swiftly: SwiftlyCommand {
3434
SelfUpdate.self,
3535
Run.self,
3636
Link.self,
37-
Unlink.self
37+
Unlink.self,
3838
]
3939
)
4040

Sources/Swiftly/Unlink.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import ArgumentParser
2-
import SwiftlyCore
32
import Foundation
3+
import SwiftlyCore
44

55
struct Unlink: SwiftlyCommand {
66
public static let configuration = CommandConfiguration(

Sources/SwiftlyCore/Messages.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
public struct Messages {
1+
public enum Messages {
22
public static let refreshShell = """
33
NOTE: Swiftly has updated some elements in your path and your shell may not yet be
44
aware of the changes. You can update your shell's environment by running
@@ -19,4 +19,4 @@ public struct Messages {
1919
2020
"""
2121
}
22-
}
22+
}

Tests/SwiftlyTests/UnlinkTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import Testing
66
@Suite struct UnlinkTests {
77
/// Tests that disabling swiftly results in swiftlyBinDir with no symlinks to toolchain binaries in it.
88
@Test func testUnlink() async throws {
9-
try await SwiftlyTests.withTestHome {
9+
try await SwiftlyTests.withTestHome {
1010
let fm = FileManager.default
1111
let swiftlyBinDir = Swiftly.currentPlatform.swiftlyBinDir(SwiftlyTests.ctx)
1212
let swiftlyBinaryPath = swiftlyBinDir.appendingPathComponent("swiftly")
@@ -24,4 +24,4 @@ import Testing
2424
#expect(disabledSwiftlyBinDirContents == ["swiftly"])
2525
}
2626
}
27-
}
27+
}

0 commit comments

Comments
 (0)