MCPcopy
hub / github.com/di-sukharev/opencommit / setDefaultConfigValues

Function setDefaultConfigValues

out/cli.cjs:87076–87085  ·  view source on GitHub ↗
(config8)

Source from the content-addressed store, hash-verified

87074 const globalConfig = getGlobalConfig();
87075 const configToOverride = { ...globalConfig };
87076 for (const key of obsoleteKeys) delete configToOverride[key];
87077 setGlobalConfig(configToOverride);
87078}
87079
87080// src/migrations/02_set_missing_default_values.ts
87081function set_missing_default_values_default() {
87082 const setDefaultConfigValues = (config8) => {
87083 const entriesToSet = [];
87084 for (const entry of Object.entries(DEFAULT_CONFIG)) {
87085 const [key, _value] = entry;
87086 if (config8[key] === "undefined" || config8[key] === void 0)
87087 entriesToSet.push(entry);
87088 }

Callers 1

Calls 3

setConfigFunction · 0.70
entriesMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…