()
| 1972 | // ============================================ |
| 1973 | |
| 1974 | function loadOhMyOpenCodeConfig() { |
| 1975 | const configPath = getOhMyOpenCodeConfigPath(); |
| 1976 | if (!configPath || !fs.existsSync(configPath)) return {}; |
| 1977 | try { |
| 1978 | return JSON.parse(fs.readFileSync(configPath, 'utf8')); |
| 1979 | } catch { |
| 1980 | return {}; |
| 1981 | } |
| 1982 | } |
| 1983 | |
| 1984 | function saveOhMyOpenCodeConfig(config) { |
| 1985 | const configPath = getOhMyOpenCodeConfigPath(); |
no test coverage detected