class ProcessExecuter::Commands::RunWithCapture

Runs a subprocess, blocks until it completes, and returns the result

Extends {ProcessExecuter::Commands::Run} to provide the core functionality for {ProcessExecuter.run_with_capture}.

It accepts all [Process.spawn execution options](docs.ruby-lang.org/en/3.4/Process.html#module-Process-label-Execution+Options) plus the additional options ‘timeout_after`, `raise_errors`, `logger`, and `merge_output`.

Like {Run}, any stdout or stderr redirection destinations are wrapped in a {MonitoredPipe}.

@api private