mirror of
https://github.com/aculix/knotchy.git
synced 2026-10-27 07:15:53 +00:00
16 lines
667 B
Swift
16 lines
667 B
Swift
/// What the setup flow needs from the session controller.
|
|
@MainActor
|
|
public protocol SetupDriving: AnyObject {
|
|
var state: SessionState { get }
|
|
var setupLog: String? { get }
|
|
var setupOutput: [String] { get }
|
|
func runtimeStatus() async -> RuntimeStatus
|
|
func checkSetup() async -> SetupRunOutcome?
|
|
func runSetup(_ issue: SetupIssue, continuing: Bool) async -> SetupRunOutcome?
|
|
func beginRuntimeInstall(replacing found: String?) async -> Result<Void, RuntimeHoldRefusal>
|
|
func finishRuntimeInstall(_ result: RuntimeInstallResult) async -> SetupRunOutcome
|
|
func waitWhileSettingUp() async
|
|
}
|
|
|
|
extension SessionController: SetupDriving {}
|