( config: TuiConfig, filePath: string = getTuiConfigPath(), )
| 124 | } |
| 125 | |
| 126 | export async function saveTuiConfig( |
| 127 | config: TuiConfig, |
| 128 | filePath: string = getTuiConfigPath(), |
| 129 | ): Promise<void> { |
| 130 | await mkdir(dirname(filePath), { recursive: true }); |
| 131 | await writeFile(filePath, renderTuiConfig(config), 'utf-8'); |
| 132 | } |
| 133 | |
| 134 | export function normalizeTuiConfig(config: TuiConfigFileShape): TuiConfig { |
| 135 | const command = config.editor?.command?.trim(); |
no test coverage detected