diff options
| author | Aiden Cline <[email protected]> | 2025-10-03 23:07:58 -0500 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-10-03 23:07:58 -0500 |
| commit | 395c41b7488a04d46a9080e3c8dfdcbcacf3e828 (patch) | |
| tree | 73bae148dca103c25c1213cb76384fcddf44f5bc | |
| parent | a11a608760f7d2b7155e2f11574b648d4cb51c00 (diff) | |
| download | opencode-395c41b7488a04d46a9080e3c8dfdcbcacf3e828.tar.gz opencode-395c41b7488a04d46a9080e3c8dfdcbcacf3e828.zip | |
add command to debug config (#2962)
| -rw-r--r-- | packages/opencode/src/cli/cmd/debug/config.ts | 14 | ||||
| -rw-r--r-- | packages/opencode/src/cli/cmd/debug/index.ts | 2 |
2 files changed, 16 insertions, 0 deletions
diff --git a/packages/opencode/src/cli/cmd/debug/config.ts b/packages/opencode/src/cli/cmd/debug/config.ts new file mode 100644 index 000000000..c7ce8d0e7 --- /dev/null +++ b/packages/opencode/src/cli/cmd/debug/config.ts @@ -0,0 +1,14 @@ +import { Config } from "../../../config/config" +import { bootstrap } from "../../bootstrap" +import { cmd } from "../cmd" + +export const ConfigCommand = cmd({ + command: "config", + builder: (yargs) => yargs, + async handler() { + await bootstrap(process.cwd(), async () => { + const config = await Config.get() + console.log(JSON.stringify(config, null, 2)) + }) + }, +}) diff --git a/packages/opencode/src/cli/cmd/debug/index.ts b/packages/opencode/src/cli/cmd/debug/index.ts index 71d337e32..172987875 100644 --- a/packages/opencode/src/cli/cmd/debug/index.ts +++ b/packages/opencode/src/cli/cmd/debug/index.ts @@ -1,6 +1,7 @@ import { Global } from "../../../global" import { bootstrap } from "../../bootstrap" import { cmd } from "../cmd" +import { ConfigCommand } from "./config" import { FileCommand } from "./file" import { LSPCommand } from "./lsp" import { RipgrepCommand } from "./ripgrep" @@ -11,6 +12,7 @@ export const DebugCommand = cmd({ command: "debug", builder: (yargs) => yargs + .command(ConfigCommand) .command(LSPCommand) .command(RipgrepCommand) .command(FileCommand) |
