duckscript icon indicating copy to clipboard operation
duckscript copied to clipboard

Capture stdout without stderr

Open liranco opened this issue 2 months ago • 0 comments

Feature Description

I'm attempting to use cargo-make, to run cargo build via duckscript, in order to capture its output, like so:

json = exec --fail-on-error cargo build --message-format json

To then parse its json output. I'd like to see the cargo build stderr output (which shows the build progress). The problem is that capturing stdout also captures stderr.

Describe The Solution You'd Like

I'd love to have a flag that can specify what output to capture / not capture.

Thank you!

liranco avatar Oct 21 '25 20:10 liranco