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
workingDirectoryThe 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
messageThe message to report
OperationContext Class Reference