run function

Future<ProcessResult> run(
  1. String executable,
  2. List<String> arguments,
  3. {String workingDirectory,
  4. Map<String, String> environment,
  5. bool includeParentEnvironment = true,
  6. bool runInShell,
  7. Encoding stdoutEncoding = systemEncoding,
  8. Encoding stderrEncoding = systemEncoding,
  9. Stream<List<int>> stdin,
  10. StreamSink<List<int>> stdout,
  11. StreamSink<List<int>> stderr,
  12. bool verbose,
  13. bool commandVerbose}
)

Could become deprecated.

if commmandVerbose or verbose is true, display the command. if verbose is true, stream stdout & stdin @deprecated

Implementation

Future<ProcessResult> run(String executable, List<String> arguments,
        {String workingDirectory,
        Map<String, String> environment,
        bool includeParentEnvironment = true,
        bool runInShell,
        Encoding stdoutEncoding = systemEncoding,
        Encoding stderrEncoding = systemEncoding,
        Stream<List<int>> stdin,
        StreamSink<List<int>> stdout,
        StreamSink<List<int>> stderr,
        bool verbose,
        bool commandVerbose}) =>
    runExecutableArguments(
      executable,
      arguments,
      workingDirectory: workingDirectory,
      environment: environment,
      includeParentEnvironment: includeParentEnvironment,
      runInShell: runInShell,
      stderrEncoding: stderrEncoding,
      stdoutEncoding: stdoutEncoding,
      stdin: stdin,
      stdout: stdout,
      stderr: stderr,
      verbose: verbose,
      commandVerbose: commandVerbose,
    );