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 more

    Declaration

    Swift

    public struct NonzeroExit : Error, Sendable
    extension Process.NonzeroExit: CustomStringConvertible, CustomDebugStringConvertible
  • Runs executable with the given command line arguments and returns the text written to its standard output and standard error streams, throwing NonzeroExit if the command fails.

    Declaration

    Swift

    public static func run(_ executable: URL, arguments: [String] = []) throws -> OutputText