Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a WithStdout helper function analogously with WithStdin #150

Closed
se7entyse7en opened this issue Apr 5, 2019 · 0 comments · Fixed by #258
Closed

Add a WithStdout helper function analogously with WithStdin #150

se7entyse7en opened this issue Apr 5, 2019 · 0 comments · Fixed by #258

Comments

@se7entyse7en
Copy link

In some cases, it's needed to set the stdout. Currently is possible to do this by setting it "manually":

cmd := icmd.Command(bin, args...)
cmd.Stdout = w

where w is some io.Writer. So I think that it would be helpful to have a corresponding WithStdout(w io.Writer) CmdOp function.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants