OperationContext
public class OperationContext
The context operations work in
-
The working directory, can be changed and all subsequent operations will be affected
Declaration
Swift
public var workingDirectory: URL
-
Environment variables
Declaration
Swift
public var environment: [String : String]
-
Creates a new instance with the specified working directory.
Declaration
Swift
public init(with workingDirectory:URL, reportingTo reporter:@escaping (String)->Void)
Parameters
workingDirectory
The working directory operations should use
-
Reports a message via the supplied reporting block. Note that only non-critical errors should be reported
Declaration
Swift
public func report(_ message: String)
Parameters
message
The message to report