Provider

public class Provider: CustomStringConvertible, Codable

Respresents a system package manager and the packages that should be installed through that given package manager.

More information here

  • Keys used for encoding/decoding a Provider object.

    Declaration

    Swift

    public typealias CodingKeys = ProviderCodingKeys
  • The package manager that the provider represents

    Declaration

    Swift

    public let type: ProviderType
  • The packages to suggest installation for.

    Declaration

    Swift

    public var packages: [String]
  • Declaration

    Swift

    public required init(from decoder: Decoder) throws
  • The provider formatted for the manifest.

    Declaration

    Swift

    public var description: String
  • Declaration

    Swift

    public func encode(to encoder: Encoder) throws
  • Updates the provider’s instance in the project’s manifest. If the instance does not exist yet, it will be created.

    Throws

    Errors that occur when creating a RegEx pattern or reading or writing the manifest.

    Declaration

    Swift

    public func save() throws
  • Removes the provider instance from the manifest’s Package.providers array.

    Throws

    Errors that occur when creating a RegEx pattern or reading or writing the manifest.

    Declaration

    Swift

    public func delete() throws