run method
Implementation
Future<int> run() async {
final (configPath, exitCode) = await getConfigPath();
if (exitCode != null) {
return exitCode;
} else if (configPath == null) {
return 1;
}
final settings = await getSettings(configPath);
final barrels = await getBarrels(settings);
final success = await createBarrelFiles(barrels);
if (!success) {
return 1;
}
logger.write('\n');
logger.success('Barrel files created');
return 0;
}