MCPcopy Index your code
hub / github.com/SmartThingsCommunity/smartthings-cli / setConfigKey

Function setConfigKey

src/lib/cli-config.ts:193–197  ·  view source on GitHub ↗
(config: CLIConfig, key: string, value: unknown)

Source from the content-addressed store, hash-verified

191 * in the future but not override user settings.
192 */
193export const setConfigKey = async (config: CLIConfig, key: string, value: unknown): Promise<void> => {
194 config.managedProfiles = mergeProfiles({ [config.profileName]: { [key]: value } }, config.managedProfiles)
195 await writeFile(config.managedConfigFilename, buildManagedConfigFileContents(config))
196 config.mergedProfiles = mergeProfiles(config.profiles, config.managedProfiles)
197}
198
199/**
200 * Reset the specified managed config key for for all profiles. The `predicate` is called for each

Callers 2

selectFromListFunction · 0.85
cli-config.test.tsFile · 0.85

Calls 2

mergeProfilesFunction · 0.85

Tested by

no test coverage detected