mirror of
https://github.com/sst/opencode.git
synced 2025-07-08 00:25:00 +00:00
wip: logs
This commit is contained in:
parent
b8de69dced
commit
3bc238b58b
1 changed files with 4 additions and 0 deletions
|
@ -9,6 +9,7 @@ import fs from "fs/promises"
|
||||||
import { Installation } from "../../installation"
|
import { Installation } from "../../installation"
|
||||||
import { Config } from "../../config/config"
|
import { Config } from "../../config/config"
|
||||||
import { Bus } from "../../bus"
|
import { Bus } from "../../bus"
|
||||||
|
import { Log } from "../../util/log"
|
||||||
|
|
||||||
export const TuiCommand = cmd({
|
export const TuiCommand = cmd({
|
||||||
command: "$0 [project]",
|
command: "$0 [project]",
|
||||||
|
@ -57,6 +58,9 @@ export const TuiCommand = cmd({
|
||||||
cwd = process.cwd()
|
cwd = process.cwd()
|
||||||
cmd = [binary]
|
cmd = [binary]
|
||||||
}
|
}
|
||||||
|
Log.Default.info("tui", {
|
||||||
|
cmd,
|
||||||
|
})
|
||||||
const proc = Bun.spawn({
|
const proc = Bun.spawn({
|
||||||
cmd: [...cmd, ...process.argv.slice(2)],
|
cmd: [...cmd, ...process.argv.slice(2)],
|
||||||
cwd,
|
cwd,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue