MCPcopy Index your code
hub / github.com/RomanHotsiy/commitgpt / writeJsonFile

Function writeJsonFile

config_storage.ts:25–27  ·  view source on GitHub ↗
(path: string, data: unknown)

Source from the content-addressed store, hash-verified

23} satisfies Config;
24
25const writeJsonFile = (path: string, data: unknown) => {
26 writeFileSync(path, JSON.stringify(data, null, 2));
27};
28
29function ensureGlobal() {
30 if (!existsSync(GLOBAL_CONFIG_PATH)) {

Callers 2

ensureGlobalFunction · 0.85
setGlobalConfigFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected