cmd
                                
                                
                                
                                    cmd copied to clipboard
                            
                            
                            
                        Add buffered combinedoutput
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.
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:
- s/BufferedCombined/CombinedOutput/ for two reasons. It mirrors Go os.Exec, and later we should extend the functionality to streaming output, too. For now, we can document that Option.CombinedOutput only works for buffered.
 - Test coverage is missing on,
 
        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.