PallidorMigrator

public struct PallidorMigrator

Entry point for PallidorMigrator package

  • Undocumented

    Declaration

    Swift

    let decoder: JSONDecoder
  • Undocumented

    Declaration

    Swift

    var codeStore: CodeStore?
  • Undocumented

    Declaration

    Swift

    var targetDirectory: Path
  • Undocumented

    Declaration

    Swift

    var migrationGuide: MigrationGuide
  • Undocumented

    Declaration

    Swift

    var migrationSet: MigrationSet
  • Entry for PallidorMigrator package

    Throws

    Error if both migration guide parameters are missing or malformed

    Declaration

    Swift

    public init(
        targetDirectory: String,
        migrationGuidePath: String? = nil,
        migrationGuideContent: String? = nil
    ) throws

    Parameters

    targetDirectory

    location string where Swift package should be located

    migrationGuidePath

    path to migration guide if not directly inserted

    migrationGuideContent

    content of migration guide if no external document is used.

  • Creates the facade layer of the Swift Package.

    Throws

    Error if facade layer generation fails

    Declaration

    Swift

    public func buildFacade() throws -> [URL]

    Return Value

    List of URLs of files of facade layer