refactor(installation): drop facade runtime wrappers (#21984)

This commit is contained in:
Kit Langton
2026-04-10 23:26:16 -04:00
committed by GitHub
parent 87e23abb10
commit 03ce2e5288
5 changed files with 50 additions and 40 deletions
+2 -1
View File
@@ -1,6 +1,7 @@
import type { Argv } from "yargs"
import { UI } from "../ui"
import * as prompts from "@clack/prompts"
import { AppRuntime } from "@/effect/app-runtime"
import { Installation } from "../../installation"
import { Global } from "../../global"
import fs from "fs/promises"
@@ -57,7 +58,7 @@ export const UninstallCommand = {
UI.empty()
prompts.intro("Uninstall OpenCode")
const method = await Installation.method()
const method = await AppRuntime.runPromise(Installation.Service.use((svc) => svc.method()))
prompts.log.info(`Installation method: ${method}`)
const targets = await collectRemovalTargets(args, method)