run method

Future run(
  1. String executable,
  2. List<String> arguments, {
  3. String? errorMessage,
})

Implementation

Future run(
  String executable,
  List<String> arguments, {
  String? errorMessage,
}) async {
  await startProcess(
    executable,
    arguments,
  ).join(
    errorMessage: errorMessage ??
        "Error running command: $executable ${arguments.join(' ')}",
  );
}