MCPcopy Create free account
hub / github.com/SmartThingsCommunity/smartthings-cli / resetManagedConfig

Function resetManagedConfig

src/lib/cli-config.ts:225–230  ·  view source on GitHub ↗
(config: CLIConfig, profileName: string)

Source from the content-addressed store, hash-verified

223 * Reset all managed config options for the specified profile.
224 */
225export const resetManagedConfig = async (config: CLIConfig, profileName: string): Promise<void> => {
226 config.managedProfiles = { ...config.managedProfiles }
227 delete config.managedProfiles[profileName]
228 await writeFile(config.managedConfigFilename, buildManagedConfigFileContents(config))
229 config.mergedProfiles = mergeProfiles(config.profiles, config.managedProfiles)
230}

Callers 2

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

Calls 2

mergeProfilesFunction · 0.85

Tested by

no test coverage detected