File tree Expand file tree Collapse file tree
packages/opencode/src/cli/cmd/debug Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ import { Config } from "../../../config/config"
2+ import { bootstrap } from "../../bootstrap"
3+ import { cmd } from "../cmd"
4+
5+ export const ConfigCommand = cmd ( {
6+ command : "config" ,
7+ builder : ( yargs ) => yargs ,
8+ async handler ( ) {
9+ await bootstrap ( process . cwd ( ) , async ( ) => {
10+ const config = await Config . get ( )
11+ console . log ( JSON . stringify ( config , null , 2 ) )
12+ } )
13+ } ,
14+ } )
Original file line number Diff line number Diff line change 11import { Global } from "../../../global"
22import { bootstrap } from "../../bootstrap"
33import { cmd } from "../cmd"
4+ import { ConfigCommand } from "./config"
45import { FileCommand } from "./file"
56import { LSPCommand } from "./lsp"
67import { RipgrepCommand } from "./ripgrep"
@@ -11,6 +12,7 @@ export const DebugCommand = cmd({
1112 command : "debug" ,
1213 builder : ( yargs ) =>
1314 yargs
15+ . command ( ConfigCommand )
1416 . command ( LSPCommand )
1517 . command ( RipgrepCommand )
1618 . command ( FileCommand )
You can’t perform that action at this time.
0 commit comments