cloudaxe-opencode/packages/opencode/src/cli/cmd/debug/index.ts

29 lines
766 B
TypeScript
Raw Normal View History

2025-07-01 17:44:52 +00:00
import { bootstrap } from "../../bootstrap"
2025-07-01 16:06:38 +00:00
import { cmd } from "../cmd"
import { FileCommand } from "./file"
import { LSPCommand } from "./lsp"
import { RipgrepCommand } from "./ripgrep"
import { SnapshotCommand } from "./snapshot"
export const DebugCommand = cmd({
command: "debug",
builder: (yargs) =>
yargs
.command(LSPCommand)
.command(RipgrepCommand)
.command(FileCommand)
.command(SnapshotCommand)
2025-07-01 17:44:52 +00:00
.command({
command: "wait",
async handler() {
await bootstrap({ cwd: process.cwd() }, async () => {
await new Promise((resolve) =>
setTimeout(resolve, 1_000 * 60 * 60 * 24),
)
})
},
})
2025-07-01 16:06:38 +00:00
.demandCommand(),
async handler() {},
})