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?[CyflOemOption.targets.name];
String? appId = argResults?.arguments.last;
if (targets == null || targets.isEmpty) {
logger.i('No targets specified.');
return null;
}
if (appId == null) {
logger.i('No appId specified.');
return null;
}
CyflOemApp.replace(
platformNames: targets,
appId: appId,
);
}