mirror of
https://github.com/sst/opencode.git
synced 2025-12-23 10:11:41 +00:00
spawn from anywhere in dev mode
This commit is contained in:
parent
ab17578516
commit
80de5d489f
1 changed files with 1 additions and 1 deletions
|
|
@ -24,7 +24,7 @@ cli.command("", "Start the opencode in interactive mode").action(async () => {
|
|||
const server = Server.listen()
|
||||
|
||||
let cmd = ["go", "run", "./main.go"]
|
||||
let cwd = "../tui"
|
||||
let cwd = new URL("../../tui", import.meta.url).pathname
|
||||
if (Bun.embeddedFiles.length > 0) {
|
||||
const blob = Bun.embeddedFiles[0] as File
|
||||
const binary = path.join(Global.cache(), "tui", blob.name)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue