markInstalled method
Adds componentNames to the installed list and persists the change.
Implementation
void markInstalled(List<String> componentNames) {
final config = read();
final updated = {...config.installed, ...componentNames}.toList()..sort();
write(
FlaiConfig(
outputDir: config.outputDir,
theme: config.theme,
installed: updated,
),
);
}