add command to debug config (#2962)

This commit is contained in:
Aiden Cline
2025-10-03 23:07:58 -05:00
committed by GitHub
parent a11a608760
commit 395c41b748
2 changed files with 16 additions and 0 deletions

View File

@@ -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))
})
},
})

View File

@@ -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)