stream method

Stream<String> stream({
  1. bool runInShell = false,
  2. String? workingDirectory,
  3. bool nothrow = false,
  4. bool includeStderr = true,
})

Experiemental - allows you to get a stream of the output written by the called process.

Implementation

Stream<String> stream(
    {bool runInShell = false,
    String? workingDirectory,
    bool nothrow = false,
    bool includeStderr = true}) {
  final progress = Progress.stream(includeStderr: includeStderr);

  cmd.startStreaming(this,
      runInShell: runInShell,
      progress: progress,
      workingDirectory: workingDirectory,
      nothrow: nothrow);

  return progress.stream;
}