Enumerationswift-package-manager 6.0.3PackageModel
Output
SwiftSDKBundleStore.swift:22enum Output
enum Output
import PackageModel
final class SwiftSDKBundleStore
case downloadStarted(URL)
case downloadFinishedSuccessfully(URL)
case verifyingChecksum
case checksumValid
case unpackingArchive(bundlePathOrURL: String)
case installationSuccessful(bundlePathOrURL: String, bundleName: String)
init(swiftSDKsDirectory: AbsolutePath, fileSystem: any FileSystem, observabilityScope: ObservabilityScope, outputHandler: @escaping (Output) -> Void, downloadProgressAnimation: ProgressAnimationProtocol? = nil)
var allValidBundles: [SwiftSDKBundle] { get throws }
An array of valid Swift SDK bundles stored in SwiftSDKBundleStore//swiftSDKsDirectory
.
func install(bundlePathOrURL: String, checksum: String? = nil, _ archiver: any Archiver, _ httpClient: HTTPClient = .init(), hasher: ((_ archivePath: AbsolutePath) throws -> String)? = nil) async throws
Installs a Swift SDK bundle from a given path or URL to SwiftSDKBundleStore//swiftSDKsDirectory
.
func selectBundle(matching selector: String, hostTriple: Triple) throws -> SwiftSDK
Select a Swift SDK matching a given query and host triple from all Swift SDKs available in SwiftSDKBundleStore//swiftSDKsDirectory
.
protocol CustomStringConvertible
A type with a customized textual representation.
protocol Equatable
A type that can be compared for value equality.
var description: String { get }
static func != (lhs: Self, rhs: Self) -> Bool
Returns a Boolean value indicating whether two values are not equal.