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

Function getGlobalConfig

out/cli.cjs:68208–68215  ·  view source on GitHub ↗
(configPath = defaultConfigPath)

Source from the content-addressed store, hash-verified

68206 };
68207};
68208var setGlobalConfig = (config8, configPath = defaultConfigPath) => {
68209 (0, import_fs.writeFileSync)(configPath, (0, import_ini.stringify)(config8), "utf8");
68210};
68211var getIsGlobalConfigFileExist = (configPath = defaultConfigPath) => {
68212 return (0, import_fs.existsSync)(configPath);
68213};
68214var getGlobalConfig = (configPath = defaultConfigPath) => {
68215 const isGlobalConfigFileExist = getIsGlobalConfigFileExist(configPath);
68216 if (!isGlobalConfigFileExist) {
68217 return { ...DEFAULT_CONFIG };
68218 }

Callers 7

getConfigFunction · 0.70
handleModelNotFoundErrorFunction · 0.70
runSetupFunction · 0.70
promptForMissingApiKeyFunction · 0.70

Calls 1

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…