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 {
try {
if (!_validateInputs()) return;
final config = _prepareConfiguration();
if (config['generateL10n']) {
await _generateLocalization(config);
}
await _retrieveDependencies(config);
_reportSuccess();
} catch (e) {
ErrorHandler.handleException(
ProjectCommandError.dependencyFailure,
e,
'Dependency retrieval failed',
);
}
}