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.formulas();
stdout.writeln('FORMULA NAME ACTIONS');
for (final f in formulas) {
final actions = [for (final a in f.actions) a.name].join(', ');
stdout.writeln(
'${f.id.value.padRight(11)} ${f.name.padRight(17)} $actions',
);
}
} finally {
client.close();
}
}