MCPcopy Create free account
hub / github.com/QodeXcli/QodeX / saveUserConfig

Function saveUserConfig

src/config/loader.ts:118–124  ·  view source on GitHub ↗
(config: Partial<QodexConfig>)

Source from the content-addressed store, hash-verified

116}
117
118export async function saveUserConfig(config: Partial<QodexConfig>): Promise<void> {
119 await ensureQodexHome();
120 await withLock(QODEX_CONFIG_FILE + '.lock', async () => {
121 const yamlText = yaml.dump(config, { indent: 2, lineWidth: 100 });
122 await writeFileAtomic(QODEX_CONFIG_FILE, yamlText);
123 });
124}
125
126export async function configExists(): Promise<boolean> {
127 try {

Callers

nothing calls this directly

Calls 3

ensureQodexHomeFunction · 0.85
withLockFunction · 0.85
writeFileAtomicFunction · 0.85

Tested by

no test coverage detected