File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
Sources/SwiftTools/Common/Shell/Platform Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ let package = Package(
12
12
. package ( url: " https://github.com/Swinject/Swinject.git " , from: " 2.8.1 " ) ,
13
13
. package ( url: " https://github.com/Swinject/SwinjectAutoregistration " , from: " 2.8.1 " ) ,
14
14
. 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 " ) ,
16
16
] ,
17
17
targets: [
18
18
. target( name: " SwiftTools " , dependencies: [
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ final class ShellServiceImpl: ShellService {
63
63
64
64
func executeWithXCBeautify( arguments: [ String ] ) throws {
65
65
let printStream = WriteStream . stdout
66
- let parser = XcbeautifyLib . Parser (
66
+ let parser = XCBeautifier (
67
67
colored: true ,
68
68
renderer: . terminal,
69
69
preserveUnbeautifiedLines: true ,
@@ -80,12 +80,12 @@ final class ShellServiceImpl: ShellService {
80
80
}
81
81
}
82
82
83
- private func makeBeautifyStream( outputStream: WritableStream , parser: XcbeautifyLib . Parser ) -> ProcessingStream {
83
+ private func makeBeautifyStream( outputStream: WritableStream , parser: XCBeautifier ) -> ProcessingStream {
84
84
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 " )
87
87
} else {
88
- outputStream. write ( line)
88
+ outputStream. write ( line + " \n " )
89
89
}
90
90
}
91
91
}
You can’t perform that action at this time.
0 commit comments