-
Notifications
You must be signed in to change notification settings - Fork 130
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 buffered combinedoutput #76
Add buffered combinedoutput #76
Conversation
updated options, logic, and tests to implement a redirection of all stderr into the stdout buffer that can be retrieve from the status object in the proper order.
I am still interested in this being added into the project. I brought my fork into sync with the recent updates and should merge cleanly if accepted. I welcome any comments. |
I would like this to be merged too... If that helps :) |
+1 respect, useful feature |
Sorry for long delay. Free open source software moves very slowly at times. The feature idea is good, but let's fix two things:
case c.stdoutBuf != nil && c.stderrBuf == nil: // buffer combining stderr into stdout
cmd.Stdout = c.stdoutBuf
cmd.Stderr = c.stdoutBuf I'm not sure why because you've got a test case, but it seems the test case doesn't actually hit that code. |
Great to see some movement on this PR. I will work on making some updates on the naming and the test cases and report back for another review. |
I have updated my branch with the option name update and the additional coverage test. Coverage is now reporting 100%. Please let me know if anything further is needed to merge this feature. |
Ack, thanks @jwomackgsa. I'll take a look this weekend. |
Additional feature that allows the buffered output to have stdout and stderr combined into the same buffer which provides a capability to easily dump the buffered output to a log file.