diff options
| author | Dax Raad <[email protected]> | 2025-07-23 12:14:54 -0400 |
|---|---|---|
| committer | Dax Raad <[email protected]> | 2025-07-23 12:14:54 -0400 |
| commit | 12b86829d9395098b621b90f7c772bf765889043 (patch) | |
| tree | 066469e7c9d94d900b685f363b720eee3360a3f6 /packages | |
| parent | 6c9ec54129b9ee219e080bff4ecfc8641f753da5 (diff) | |
| download | opencode-12b86829d9395098b621b90f7c772bf765889043.tar.gz opencode-12b86829d9395098b621b90f7c772bf765889043.zip | |
add debug paths command
Diffstat (limited to 'packages')
| -rw-r--r-- | packages/opencode/src/cli/cmd/debug/index.ts | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/packages/opencode/src/cli/cmd/debug/index.ts b/packages/opencode/src/cli/cmd/debug/index.ts index 77f4129a8..265296f5b 100644 --- a/packages/opencode/src/cli/cmd/debug/index.ts +++ b/packages/opencode/src/cli/cmd/debug/index.ts @@ -1,3 +1,4 @@ +import { Global } from "../../../global" import { bootstrap } from "../../bootstrap" import { cmd } from "../cmd" import { FileCommand } from "./file" @@ -15,6 +16,7 @@ export const DebugCommand = cmd({ .command(FileCommand) .command(ScrapCommand) .command(SnapshotCommand) + .command(PathsCommand) .command({ command: "wait", async handler() { @@ -26,3 +28,12 @@ export const DebugCommand = cmd({ .demandCommand(), async handler() {}, }) + +const PathsCommand = cmd({ + command: "paths", + handler() { + for (const [key, value] of Object.entries(Global.Path)) { + console.log(key.padEnd(10), value) + } + }, +}) |
