runExecutableArguments method

  1. @override
Future<ProcessResult> runExecutableArguments(
  1. String executable,
  2. List<String> arguments, {
  3. ShellOnProcessCallback? onProcess,
})

Run a single executable with arguments, resolving the executable if needed.

Returns a process result (or throw if specified in the shell).

onProcess is called for each started process.

Implementation

@override
Future<ProcessResult> runExecutableArguments(
    String executable, List<String> arguments,
    {ShellOnProcessCallback? onProcess}) async {
  return _runLocked((runId) async {
    return _lockedRunExecutableArguments(runId, executable, arguments,
        onProcess: onProcess);
  });
}