run method
Runs this command.
The return value is wrapped in a Future if necessary and returned by
CommandRunner.runCommand.
Implementation
@override
Future<void> run() async {
final client = _apiClientFrom(argResults!);
try {
final formulas = (await client.get('/formulas') as List).cast<Map>();
stdout.writeln('FORMULA NAME ACTIONS');
for (final f in formulas) {
final id = '${f['id']}'.padRight(11);
final name = '${f['name']}'.padRight(17);
final actions = (f['actions'] as List).join(', ');
stdout.writeln('$id $name $actions');
}
} finally {
client.close();
}
}