run method

Future<int> run(
  1. String executable,
  2. List<String> args,
  3. String folder
)

run executable with args in folder and return its exit code

Implementation

Future<int> run(String executable, List<String> args, String folder) async {
  Process process = await Process.start(
    executable,
    args,
    workingDirectory: folder,
    mode: ProcessStartMode.inheritStdio,
  );
  return process.exitCode;
}