run method
Implementation
Future<void> run() async {
while (true) {
final features = _getFeatures();
Console.printFeatureList(features); // panel β printed once, stays
final options = [
...features.map((f) => 'π $f'),
'β Add new feature',
'πͺ Exit',
];
final idx = _select('Feature Manager', options); // menu follows immediately
if (idx == options.length - 1) {
Console.info('Goodbye! Happy coding π');
break;
} else if (idx == options.length - 2) {
await _addFeature();
} else {
await _manageFeature(features[idx]);
}
}
}