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

Function configDir

src/installer/targets/qoder.ts:29–33  ·  view source on GitHub ↗
(loc: Location)

Source from the content-addressed store, hash-verified

27import { configDirFromEnv, getStdioServerConfig } from './shared';
28
29function configDir(loc: Location): string {
30 return loc === 'global'
31 ? configDirFromEnv('QODER_CONFIG_DIR', path.join(os.homedir(), '.qoder'))
32 : path.join(process.cwd(), '.qoder');
33}
34
35function settingsPath(loc: Location): string {
36 return path.join(configDir(loc), loc === 'global' ? 'settings.json' : 'settings.local.json');

Callers 2

settingsPathFunction · 0.70
detectMethod · 0.70

Calls 2

configDirFromEnvFunction · 0.90
joinMethod · 0.45

Tested by

no test coverage detected