(config: CLIConfig, key: string, value: unknown)
| 191 | * Save the specified configuration key into managed config so it will be picked up |
| 192 | * in the future but not override user settings. |
| 193 | */ |
| 194 | export const setConfigKey = async (config: CLIConfig, key: string, value: unknown): Promise<void> => { |
| 195 | config.managedProfiles = mergeProfiles({ [config.profileName]: { [key]: value } }, config.managedProfiles) |
| 196 | await writeFile(config.managedConfigFilename, buildManagedConfigFileContents(config)) |
| 197 | config.mergedProfiles = mergeProfiles(config.profiles, config.managedProfiles) |
| 198 | } |
| 199 | |
| 200 | /** |
no test coverage detected