run method
Runs this command.
The return value is wrapped in a Future if necessary and returned by
CommandRunner.runCommand.
Implementation
@override
void run() async {
final isForce = argResults?['force'] as bool? ?? false;
final isVerbose = argResults?['verbose'] as bool? ?? false;
try {
await _performUpgrade(isForce: isForce, isVerbose: isVerbose);
} catch (e) {
StatusHelper.failed('Upgrade failed: $e');
_printTroubleshootingHelp();
rethrow;
}
}