blob: 965ed6ddc00358eb3dc4871b0dd2215854f17013 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
import { invoke } from "@tauri-apps/api/core"
import { message } from "@tauri-apps/plugin-dialog"
export async function installCli(): Promise<void> {
try {
const path = await invoke<string>("install_cli")
await message(`CLI installed to ${path}\n\nRestart your terminal to use the 'opencode' command.`, {
title: "CLI Installed",
})
} catch (e) {
await message(`Failed to install CLI: ${e}`, { title: "Installation Failed" })
}
}
|