Files
oh-my-opencode/src/cli/install.ts
T

11 lines
402 B
TypeScript
Raw Normal View History

import packageJson from "../../package.json" with { type: "json" }
import type { InstallArgs } from "./types"
import { runCliInstaller } from "./cli-installer"
import { runTuiInstaller } from "./tui-installer"
2025-12-23 22:26:19 +09:00
const VERSION = packageJson.version
2025-12-23 22:26:19 +09:00
export async function install(args: InstallArgs): Promise<number> {
return args.tui ? runTuiInstaller(args, VERSION) : runCliInstaller(args, VERSION)
2025-12-23 22:26:19 +09:00
}