(config: CLIConfig, key: string, value: unknown)
| 191 | * in the future but not override user settings. |
| 192 | */ |
| 193 | export 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 |
no test coverage detected