MCPcopy Create free account
hub / github.com/AICoderTudou/claude-code-tudou / readEnvSettings

Function readEnvSettings

desktop/main.cjs:93–102  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

91}
92
93function readEnvSettings() {
94 if (!fs.existsSync(ENV_PATH)) return {};
95 const raw = fs.readFileSync(ENV_PATH, "utf8");
96 const { map } = parseEnvLines(raw);
97 const settings = {};
98 for (const key of SETTINGS_KEYS) {
99 settings[key] = map.get(key) ?? "";
100 }
101 return settings;
102}
103
104function writeEnvSettings(partial) {
105 const safePartial = partial || {};

Callers 2

writeEnvSettingsFunction · 0.85
main.cjsFile · 0.85

Calls 2

parseEnvLinesFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected