Skip to content

0.13.0

Compare
Choose a tag to compare
@finestructure finestructure released this 22 Mar 14:00
dc3c32a
  • 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)
    }