Files
neuron/packages/opencode/src/cli/cmd/debug/config.ts
T
2026-06-02 21:20:25 +02:00

15 lines
509 B
TypeScript

import { EOL } from "os"
import { Effect } from "effect"
import { effectCmd } from "../../effect-cmd"
export const ConfigCommand = effectCmd({
command: "config",
describe: "show resolved configuration",
builder: (yargs) => yargs,
handler: Effect.fn("Cli.debug.config")(function* () {
const { Config } = yield* Effect.promise(() => import("@/config/config"))
const config = yield* Config.Service.use((cfg) => cfg.get())
process.stdout.write(JSON.stringify(config, null, 2) + EOL)
}),
})