Skip to content

Commit a354d01

Browse files
committed
Update tests formatting
1 parent a1877bf commit a354d01

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ let package = Package(
1212
.package(url: "https://github.com/Swinject/Swinject.git", from: "2.8.1"),
1313
.package(url: "https://github.com/Swinject/SwinjectAutoregistration", from: "2.8.1"),
1414
.package(url: "https://github.com/jakeheis/SwiftCLI", exact: "6.0.3"),
15-
.package(url: "https://github.com/raptorxcz/xcbeautify", exact: "2.7.1"),
15+
.package(url: "https://github.com/cpisciotta/xcbeautify", exact: "2.8.0"),
1616
],
1717
targets: [
1818
.target(name: "SwiftTools", dependencies: [

Sources/SwiftTools/Common/Shell/Platform/ShellService.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ final class ShellServiceImpl: ShellService {
6363

6464
func executeWithXCBeautify(arguments: [String]) throws {
6565
let printStream = WriteStream.stdout
66-
let parser = XcbeautifyLib.Parser(
66+
let parser = XCBeautifier(
6767
colored: true,
6868
renderer: .terminal,
6969
preserveUnbeautifiedLines: true,
@@ -80,12 +80,12 @@ final class ShellServiceImpl: ShellService {
8080
}
8181
}
8282

83-
private func makeBeautifyStream(outputStream: WritableStream, parser: XcbeautifyLib.Parser) -> ProcessingStream {
83+
private func makeBeautifyStream(outputStream: WritableStream, parser: XCBeautifier) -> ProcessingStream {
8484
return LineStream { line in
85-
if let formatted = parser.parse(line: line) {
86-
outputStream.write(formatted)
85+
if let formatted = parser.format(line: line) {
86+
outputStream.write(formatted + "\n")
8787
} else {
88-
outputStream.write(line)
88+
outputStream.write(line + "\n")
8989
}
9090
}
9191
}

0 commit comments

Comments
 (0)