(loc: Location)
| 27 | import { configDirFromEnv, getStdioServerConfig } from './shared'; |
| 28 | |
| 29 | function 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 | |
| 35 | function settingsPath(loc: Location): string { |
| 36 | return path.join(configDir(loc), loc === 'global' ? 'settings.json' : 'settings.local.json'); |
no test coverage detected