stream method

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

Experimental - 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,
  bool extensionSearch = true,
}) {
  final progress = Progress.stream(includeStderr: includeStderr);

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

  return progress.stream;
}