run method
Runs this command.
The return value is wrapped in a Future
if necessary and returned by
CommandRunner.runCommand
.
Implementation
@override
FutureOr? run() {
final targets = argResults?[RenameOption.targets.name];
if (targets == null || targets.isEmpty) {
print('No targets specified.');
return null;
}
print('Targets: $targets');
final rename = Rename.fromPlatformNames(
platformNames: targets,
);
return rename.applyWithCommandName(
commandName: name,
);
}