MCPcopy Index your code
hub / github.com/cameri/nostream / loadUserSettings

Function loadUserSettings

src/cli/utils/config.ts:261–265  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

259}
260
261export const loadUserSettings = (): Settings => {
262 ensureSettingsExists()
263 const raw = fs.readFileSync(getSettingsFilePath(), 'utf-8')
264 return (yaml.load(raw) as Settings) ?? ({} as Settings)
265}
266
267export const loadMergedSettings = (): Settings => {
268 return mergeDeepRight(loadDefaults(), loadUserSettings()) as Settings

Callers 2

runConfigSetFunction · 0.90
loadMergedSettingsFunction · 0.85

Calls 2

getSettingsFilePathFunction · 0.90
ensureSettingsExistsFunction · 0.85

Tested by

no test coverage detected