run static method

Future<void> run(
  1. String command,
  2. List<String> args
)

Implementation

static Future<void> run(String command, List<String> args) async {
  ProcessResult result = await Process.run(command, args);
  if (result.exitCode != 0) {
    stdout.writeln(result.stderr);
    exit(result.exitCode);
  }

  stdout.writeln(result.stdout);
}