Process
extension Process
-
The textual output of a process run.
Declaration
Swift
public typealias OutputText = (standardOutput: Lazy<String>, standardError: Lazy<String>) -
The results of a process run that exited with a nonzero code.
See moreDeclaration
Swift
public struct NonzeroExit : Error, Sendableextension Process.NonzeroExit: CustomStringConvertible, CustomDebugStringConvertible -
Runs
executablewith the given command lineargumentsand returns the text written to its standard output and standard error streams, throwingNonzeroExitif the command fails.Declaration
Swift
public static func run(_ executable: URL, arguments: [String] = []) throws -> OutputText
View on GitHub