run method

  1. @override
Future<void> run()
override

Runs this command.

The return value is wrapped in a Future if necessary and returned by CommandRunner.runCommand.

Implementation

@override
Future<void> run() async {
  config = ConfigService(projectDir);

  Logger.phase('Udara CLI Doctor');
  Logger.info('Scanning project at "$projectDir"\n');

  await _checkProjectStructure();
  await _checkPubspecDependencies();
  await _checkClients(argResults?['client'] as String?);

  _printSummary();

  if (_failed > 0) exit(1);
}