0.13.0
- add
run
overload to allow easier integration with other tools
public func run(progress: ProgressUpdate) throws
where
public typealias ProgressUpdate = (Progress.Stage, String) -> ()
public enum Progress {
public enum Stage {
case started
case listPackages
case resolvePackages
case listLibraries
case buildingDependencies
case showingPlaygroundBookPath
case showingOpenAdvisory
case completed
}
public static func update(stage: Stage, description: String) { print(description) }
}
and the default is
public func run() throws {
try run(progress: Progress.update)
}