runProcess function

  1. @Deprecated('Use `run` instead.')
String runProcess(
  1. String executable, {
  2. List<String> arguments = const [],
  3. RunOptions? runOptions,
  4. bool quiet = false,
  5. String? workingDirectory,
})

Synchronously run an executable.

If quiet is false, logs the stdout. The stderr is always logged.

Returns the stdout.

All other optional parameters are forwarded to Process.runSync.

Implementation

@Deprecated('Use `run` instead.')
String runProcess(String executable,
    {List<String> arguments = const [],
    RunOptions? runOptions,
    bool quiet = false,
    String? workingDirectory}) {
  runOptions = mergeWorkingDirectory(workingDirectory, runOptions);
  return run(executable,
      arguments: arguments, runOptions: runOptions, quiet: quiet);
}