AsyncProcessResult
Process result data which is available after process termination.
struct AsyncProcessResult
Process result data which is available after process termination.
struct AsyncProcessResult
import Basics
protocol CustomStringConvertible
A type with a customized textual representation.
protocol Sendable
init(arguments: [String], environment: Environment, exitStatus: ExitStatus, output: Result<[UInt8], Swift.Error>, stderrOutput: Result<[UInt8], Swift.Error>)
Create an instance using an exit status and output result.
init(arguments: [String], environment: Environment, exitStatusCode: Int32, normal: Bool, output: Result<[UInt8], Swift.Error>, stderrOutput: Result<[UInt8], Swift.Error>)
Create an instance using a POSIX process exit status code and output result.
let arguments: [String]
The arguments with which the process was launched.
var description: String { get }
let environment: Environment
The environment with which the process was launched.
let exitStatus: ExitStatus
The exit status of the process.
let output: Result<[UInt8], Swift.Error>
The output bytes of the process. Available only if the process was asked to redirect its output and no stdout output closure was set.
let stderrOutput: Result<[UInt8], Swift.Error>
The output bytes of the process. Available only if the process was asked to redirect its output and no stderr output closure was set.
func utf8Output() throws -> String
Converts stdout output bytes to string, assuming they’re UTF8.
func utf8stderrOutput() throws -> String
Converts stderr output bytes to string, assuming they’re UTF8.
enum Error
enum ExitStatus