rogpeppe / go-internal

Selected Go-internal packages factored out from the standard library
BSD 3-Clause "New" or "Revised" License
823 stars 67 forks source link

testscript: allow custom cmds to set stdout/stderr #231

Closed caarlos0 closed 1 year ago

caarlos0 commented 1 year ago

when setting up custom commands, unless you use ts.Exec, you can't really set stdout/stderr.

IMHO, we could add a ts.SetStdout or ts.WriteStdout or something similar.

mvdan commented 1 year ago

You mean https://github.com/rogpeppe/go-internal/pull/216? :)

You might not have seen it given that it's recent and we haven't done a release since.

caarlos0 commented 1 year ago

Oh, yes, exactly! Sorry, I searched but failed to find that PR.

Closing! Thank you!