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

16 lines
422 B
TypeScript
Raw Normal View History

import { EOL } from "os"
2025-10-04 04:07:58 +00:00
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()
process.stdout.write(JSON.stringify(config, null, 2) + EOL)
2025-10-04 04:07:58 +00:00
})
},
})