Skip to content

Commit e8c1515

Browse files
authored
Add back standardOutput and standardError as deprecated renamed properties (#288)
1 parent 9d5294c commit e8c1515

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

Sources/Subprocess/IO/Output.swift

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,12 @@ extension OutputProtocol where Self == FileDescriptorOutput {
216216
)
217217
}
218218

219+
// TODO: remove for 1.0
220+
@available(*, deprecated, renamed: "currentStandardOutput")
221+
public static var standardOutput: Self {
222+
return currentStandardOutput
223+
}
224+
219225
/// Creates a subprocess output that writes to the current process's standard error.
220226
///
221227
/// The file descriptor isn't closed afterwards.
@@ -225,6 +231,12 @@ extension OutputProtocol where Self == FileDescriptorOutput {
225231
closeAfterSpawningProcess: false
226232
)
227233
}
234+
235+
// TODO: remove for 1.0
236+
@available(*, deprecated, renamed: "currentStandardError")
237+
public static var standardError: Self {
238+
return currentStandardError
239+
}
228240
}
229241

230242
extension OutputProtocol where Self == StringOutput<UTF8> {

0 commit comments

Comments
 (0)