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 {
final config = _prepareConfiguration();
if (!_validateConfiguration(config)) return;
final pathsToFormat = _determinePaths(config);
await _executeFormatting(pathsToFormat);
_reportSuccess();
} catch (e) {
ErrorHandler.handleException(
ProjectCommandError.buildFailure,
e,
'Code formatting failed',
);
}
}