Skip to content

Commit 10833c9

Browse files
committed
Update to Subprocess 0.4.0
1 parent f6b84ce commit 10833c9

3 files changed

Lines changed: 8 additions & 8 deletions

File tree

Package.resolved

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ let package = Package(
5555
.package(url: "https://github.com/apple/swift-nio", from: "2.77.0"),
5656

5757
.package(url: "https://github.com/swiftlang/swift-docc-plugin", from: "1.0.0"),
58-
.package(url: "https://github.com/swiftlang/swift-subprocess", .upToNextMinor(from: "0.1.0")),
58+
.package(url: "https://github.com/swiftlang/swift-subprocess", .upToNextMinor(from: "0.4.0")),
5959

6060
.package(url: "https://github.com/swift-server/async-http-client.git", from: "1.23.0"),
6161
.package(url: "https://github.com/swift-server/swift-openapi-async-http-client", from: "1.0.0"),

Sources/XUtils/Subprocess+Utils.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
import Subprocess
33
import Foundation
44

5-
extension CollectedResult {
5+
extension ExecutionRecord {
66
@discardableResult
77
public func checkSuccess() throws(SubprocessFailure) -> Self {
88
try terminationStatus.checkSuccess()
99
return self
1010
}
1111
}
1212

13-
extension ExecutionResult {
13+
extension ExecutionOutcome {
1414
@discardableResult
1515
public func checkSuccess() throws(SubprocessFailure) -> Self {
1616
try terminationStatus.checkSuccess()
@@ -27,14 +27,14 @@ extension TerminationStatus {
2727
if isSuccess { return nil }
2828
switch self {
2929
case .exited(let code): return .exited(code)
30-
case .unhandledException(let code): return .unhandledException(code)
30+
case .signaled(let code): return .signaled(code)
3131
}
3232
}
3333
}
3434

3535
public enum SubprocessFailure: Error {
3636
case exited(TerminationStatus.Code)
37-
case unhandledException(TerminationStatus.Code)
37+
case signaled(TerminationStatus.Code)
3838
}
3939

4040
extension PlatformOptions {

0 commit comments

Comments
 (0)