Support swift-subprocess 1.x

The exclusive `from: "0.3.0"` range blocked dependents that already
use swift-subprocess 1.0. Version 1.0 renamed the stdio outputs used
by the task CLI to `currentStandardOutput` and `currentStandardError`.
This commit is contained in:
T. R. Bernstein
2026-09-13 22:28:26 +02:00
parent 10943f9ce3
commit 8cedee6139
4 changed files with 11 additions and 11 deletions
@@ -53,8 +53,8 @@ struct GenerateDocumentationCommand: AsyncParsableCommand {
"swift:latest",
"/bin/bash", "-c", script
],
output: .standardOutput,
error: .standardError
output: .currentStandardOutput,
error: .currentStandardError
)
if !dockerRunResult.terminationStatus.isSuccess {
noora.error("Documentation generation failed.")
@@ -112,7 +112,7 @@ struct GenerateDocumentationCommand: AsyncParsableCommand {
.name("swift"),
arguments: ["package", "describe", "--type", "json"],
output: .data(limit: 10_000),
error: .standardError
error: .currentStandardError
)
struct PackageDescription: Codable {
@@ -178,8 +178,8 @@ struct GenerateDocumentationCommand: AsyncParsableCommand {
"package", "--package-path", directory.path(percentEncoded: false),
"add-dependency", "--from", Self.doccPluginMinVersion, Self.doccPluginURL
],
output: .standardOutput,
error: .standardError
output: .currentStandardOutput,
error: .currentStandardError
)
if !swiftRunResult.terminationStatus.isSuccess {
throw GenerateDocumentationError.dependencyInjectionFailed