MCPcopy Create free account
hub / github.com/Noumena-Network/code / loadSettingSourcesFromFlag

Function loadSettingSourcesFromFlag

src/main.tsx:546–558  ·  view source on GitHub ↗
(settingSourcesArg: string)

Source from the content-addressed store, hash-verified

544 }
545}
546function loadSettingSourcesFromFlag(settingSourcesArg: string): void {
547 try {
548 const sources = parseSettingSourcesFlag(settingSourcesArg);
549 setAllowedSettingSources(sources);
550 resetSettingsCache();
551 } catch (error) {
552 if (error instanceof Error) {
553 logError(error);
554 }
555 process.stderr.write(chalk.red(`Error processing --setting-sources: ${errorMessage(error)}\n`));
556 process.exit(1);
557 }
558}
559
560/**
561 * Parse and load settings flags early, before init()

Callers 1

eagerLoadSettingsFunction · 0.85

Calls 6

parseSettingSourcesFlagFunction · 0.85
setAllowedSettingSourcesFunction · 0.85
resetSettingsCacheFunction · 0.85
logErrorFunction · 0.50
errorMessageFunction · 0.50
writeMethod · 0.45

Tested by

no test coverage detected