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 {
if (argResults?.rest.isEmpty ?? true) {
await runInteractive();
return;
}
final name = argResults!.rest.first;
final type = argResults!['type'] as String;
await _execute(name, type);
}