run method

  1. @override
void run()
override

Runs this command.

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

Implementation

@override
void run() {
  if (which('flutter').found) {
    print('${green('[✓]')} Flutter installed');
    FlutterHelper.run('doctor');
  } else {
    printerr('${red('[x]')} Flutter not installed');
    printerr(
      'You can install flutter in https://docs.flutter.dev/get-started/install',
    );
  }

  if (which('gherkin').found) {
    print('${green('[✓]')} Gherkin installed');
  } else {
    printerr('${red('[x]')} Gherkin not installed');
    printerr(
      'You can install in https://github.com/gitsindonesia/gits_cli/releases/tag/cucumber',
    );
  }

  if (which('lcov').found) {
    print('${green('[✓]')} lcov installed');
  } else {
    printerr('${red('[x]')} lcov not installed');
    printerr(
      'You can follow installation in https://github.com/linux-test-project/lcov',
    );
  }
}