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

Function saveSettings

src/cli/utils/config.ts:271–275  ·  view source on GitHub ↗
(settings: Settings)

Source from the content-addressed store, hash-verified

269}
270
271export const saveSettings = (settings: Settings): void => {
272 ensureSettingsExists()
273 const serialized = yaml.dump(toSerializable(settings), { lineWidth: 120 })
274 fs.writeFileSync(getSettingsFilePath(), serialized, 'utf-8')
275}
276
277export const getByPath = (settings: unknown, path: string): unknown => {
278 const tokens = parsePath(path)

Callers 1

runConfigSetFunction · 0.90

Calls 3

getSettingsFilePathFunction · 0.90
ensureSettingsExistsFunction · 0.85
toSerializableFunction · 0.85

Tested by

no test coverage detected