CustomContext

public struct CustomContext : Context, CommandRunning

Undocumented

  • env

    Undocumented

    Declaration

    Swift

    public var env: [String : String]
  • Undocumented

    Declaration

    Swift

    public var stdin: ReadableStream
  • Undocumented

    Declaration

    Swift

    public var stdout: WritableStream
  • Undocumented

    Declaration

    Swift

    public var stderror: WritableStream
  • The current working directory.

    Must be used instead of run("cd", "...") because all the run commands are executed in a separate process and changing the directory there will not affect the rest of the Swift script.

    Declaration

    Swift

    public var currentdirectory: String
  • Creates a blank CustomContext where env and stdin are empty, stdout and stderror discard everything and currentdirectory is the current working directory.

    Declaration

    Swift

    public init()
  • Creates an identical copy of another Context.

    Declaration

    Swift

    public init(_ context: Context)