MCPcopy Create free account
hub / github.com/anus-dev/ANUS / setValue

Method setValue

packages/cli/src/config/settings.ts:148–157  ·  view source on GitHub ↗
(
    scope: SettingScope,
    key: K,
    value: Settings[K],
  )

Source from the content-addressed store, hash-verified

146 }
147
148 setValue<K extends keyof Settings>(
149 scope: SettingScope,
150 key: K,
151 value: Settings[K],
152 ): void {
153 const settingsFile = this.forScope(scope);
154 settingsFile.settings[key] = value;
155 this._merged = this.computeMergedSettings();
156 saveSettings(settingsFile);
157 }
158}
159
160function resolveEnvVarsInString(value: string): string {

Callers 14

mainFunction · 0.45
saveModifiedSettingsFunction · 0.45
removeMcpServerFunction · 0.45
addMcpServerFunction · 0.45
authenticateMethod · 0.45
AppFunction · 0.45
ideCommandFunction · 0.45
VimModeProviderFunction · 0.45
useThemeCommandFunction · 0.45
useAuthCommandFunction · 0.45
useFolderTrustFunction · 0.45
useEditorSettingsFunction · 0.45

Calls 3

forScopeMethod · 0.95
computeMergedSettingsMethod · 0.95
saveSettingsFunction · 0.85

Tested by

no test coverage detected