Progress.capture constructor

Progress.capture({
  1. bool captureStdout = true,
  2. bool captureStderr = true,
  3. Encoding encoding = utf8,
})

Captures the output of the called process to a list which can be obtained by calling Progress.lines once the process completes. By default both stdout and stderr are captured. Set captureStdout to false to suppress capturing of stdout. Set captureStderr to false to suppress capturing of stderr. Use encoding to control how output bytes are decoded into strings.

Implementation

factory Progress.capture(
        {bool captureStdout = true,
        bool captureStderr = true,
        Encoding encoding = utf8}) =>
    ProgressBothImpl(devNull,
        captureStdout: captureStdout,
        captureStderr: captureStderr,
        encoding: encoding);