-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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 getExecOutput function #814
Conversation
69a8751
to
b70fd48
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM minor thoughts
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tests appear to be failing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
The functionality introduced in this PR is very useful. For now I've copied the |
Adds a convenience function go more easily get the output of an exec command. Rather than having to explicitly define listeners in
ExecOptions
this method will return the collected output ofstdOut
andstdErr
in addition to the exit code. This should make usage a little less awkward in situations where users need the output of anexec
command.Resolves #769