install(_:)

Installs the downloaded archive into the home directory.

Declaration

mutating func install(
    _ handler: (
        @Sendable
        (
            WriteAction,
            inout Bool
        ) async -> Bool
    )
) async throws

Parameters

  • handler: Returns whether the action should be performed. Takes a WriteAction and a boolean that can be set to true to stop the whole installation.

Discussion

Calls handler to let the client decided whether an action should be performed.