From 00edaef5144b54a80d80ec3107396ae9dcd13d16 Mon Sep 17 00:00:00 2001 From: Marc Prud'hommeaux Date: Mon, 1 Jun 2026 11:26:14 -0400 Subject: [PATCH] Add back standardOutput and standardError as deprecated renamed properties --- Sources/Subprocess/IO/Output.swift | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Sources/Subprocess/IO/Output.swift b/Sources/Subprocess/IO/Output.swift index 395a73bc..6b3a73e1 100644 --- a/Sources/Subprocess/IO/Output.swift +++ b/Sources/Subprocess/IO/Output.swift @@ -216,6 +216,12 @@ extension OutputProtocol where Self == FileDescriptorOutput { ) } + // TODO: remove for 1.0 + @available(*, deprecated, renamed: "currentStandardOutput") + public static var standardOutput: Self { + return currentStandardOutput + } + /// Creates a subprocess output that writes to the current process's standard error. /// /// The file descriptor isn't closed afterwards. @@ -225,6 +231,12 @@ extension OutputProtocol where Self == FileDescriptorOutput { closeAfterSpawningProcess: false ) } + + // TODO: remove for 1.0 + @available(*, deprecated, renamed: "currentStandardError") + public static var standardError: Self { + return currentStandardError + } } extension OutputProtocol where Self == StringOutput {