MCPcopy
hub / github.com/colbymchenry/codegraph / writeConfig

Method writeConfig

src/telemetry/index.ts:349–357  ·  view source on GitHub ↗
(config: ConfigFile)

Source from the content-addressed store, hash-verified

347 }
348
349 private writeConfig(config: ConfigFile): void {
350 try {
351 fs.mkdirSync(this.dir, { recursive: true, mode: 0o700 });
352 fs.writeFileSync(this.configPath, JSON.stringify(config, null, 2) + '\n');
353 this.configCache = config;
354 } catch {
355 /* fail silent */
356 }
357 }
358
359 /**
360 * Default-on consent is gated by a one-time stderr notice (interactive

Callers 2

setEnabledMethod · 0.95
firstRunNoticeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected