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

Added 'SeparatedOutput' command to capture stdout and stderr separately #41

Closed
wants to merge 1 commit into from
Closed

Added 'SeparatedOutput' command to capture stdout and stderr separately #41

wants to merge 1 commit into from

Conversation

AriSweedler
Copy link

I just copy/pasted the code you already had but allowed a channel for stderr. Had to wrestle with the type checker, so that's why all the code I added is duplicate.

The interesting part is here

 	c.Session.Stdout = &stdout_buff
	c.Session.Stderr = &stderr_buff

And now I don't have to lose any information when running remote commands that may have stdout and stderr.

@AriSweedler AriSweedler closed this by deleting the head repository Sep 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant