duckscript
duckscript copied to clipboard
Capture stdout without stderr
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!