Download packages/desktop/src/renderer/cli.ts from SaylorTwift/opencode: direct link, hf CLI and curl.
- Browser
- Download file 322 Bytes
-
https://huggingface.co/SaylorTwift/opencode/resolve/main/packages/desktop/src/renderer/cli.ts
- Command line
-
hf download hf://SaylorTwift/opencode/packages/desktop/src/renderer/cli.ts
-
curl -L -o cli.ts https://huggingface.co/SaylorTwift/opencode/resolve/main/packages/desktop/src/renderer/cli.ts
322 Bytes
| 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) })) | |
| } | |
| } | |