mirror of
https://github.com/anomalyco/opencode.git
synced 2026-04-24 14:55:19 +00:00
13 lines
322 B
TypeScript
13 lines
322 B
TypeScript
import { initI18n, t } from "./i18n"
|
|
|
|
export async function installCli(): Promise<void> {
|
|
await initI18n()
|
|
|
|
try {
|
|
const path = await window.api.installCli()
|
|
window.alert(t("desktop.cli.installed.message", { path }))
|
|
} catch (e) {
|
|
window.alert(t("desktop.cli.failed.message", { error: String(e) }))
|
|
}
|
|
}
|