run method

Future<ProcessResult> run (
  1. String executable,
  2. Iterable<String> arguments
)

Implementation

Future<ProcessResult> run(String executable, Iterable<String> arguments) {
  var command = [executable]..addAll(arguments ?? []);
  if (sudo)
    throw new UnsupportedError(
        'When using `sudo`, you cannot call `run`, as stdin access is required to provide an account password.');
  return processManager.run(command,
      workingDirectory: workingDirectory,
      environment: environment,
      runInShell: runInShell,
      includeParentEnvironment: includeParentEnvironment);
}