MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / configBaseDir

Function configBaseDir

src/installer/targets/opencode.ts:83–85  ·  view source on GitHub ↗
(loc: Location)

Source from the content-addressed store, hash-verified

81}
82
83function configBaseDir(loc: Location): string {
84 return loc === 'global' ? globalConfigDir() : process.cwd();
85}
86
87// Pick existing .jsonc, then .json, default to .jsonc for new files.
88// opencode auto-creates .jsonc on first run, so that's the dominant

Callers 2

configPathFunction · 0.85
instructionsPathFunction · 0.85

Calls 1

globalConfigDirFunction · 0.85

Tested by

no test coverage detected