run method

Future<int> run(
  1. List<String> args
)

Implementation

Future<int> run(List<String> args) async {
  try {
    final exitCode = await runner.run(args);
    return exitCode ?? 0;
  } on UsageException catch (e) {
    print(e);
    return 64; // Standard command line error code
  } catch (e) {
    print('An unexpected error occurred: $e');
    return 1;
  }
}