This commit is contained in:
Dax Raad
2025-05-31 18:10:49 -04:00
parent b4f809559e
commit 6d21525e71
4 changed files with 68 additions and 33 deletions

View File

@@ -7,11 +7,14 @@ import { Bus } from "./bus"
import { Session } from "./session/session"
import cac from "cac"
import { Share } from "./share/share"
import { LLM } from "./llm/llm"
import { Message } from "./session/message"
import { Global } from "./global"
import { Provider } from "./provider/provider"
declare global {
const OPENCODE_VERSION: string
}
const cli = cac("opencode")
cli.command("", "Start the opencode in interactive mode").action(async () => {
@@ -111,6 +114,6 @@ cli
})
})
cli.version(typeof OPENCODE_VERSION === "string" ? OPENCODE_VERSION : "dev")
cli.help()
cli.version("1.0.0")
cli.parse()