run abstract method

Future<CommandResult> run(
  1. String command, {
  2. List<String> arguments,
  3. String? workingDirectory,
  4. Duration? timeout,
  5. CommandPriority priority,
})

Runs command with arguments and returns stdout/stderr/exit code.

When timeout elapses the process is killed and a TimeoutException is thrown. priority orders work on the isolate executor; mark idempotent polling queries CommandPriority.background.

Implementation

Future<CommandResult> run(
  String command, {
  List<String> arguments,
  String? workingDirectory,
  Duration? timeout,
  CommandPriority priority,
});