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 support for setting preferred output target #145

Merged
merged 1 commit into from
Sep 16, 2022

Conversation

atc0005
Copy link
Owner

@atc0005 atc0005 commented Sep 16, 2022

Add ExitState.SetOutputTarget method to provide client code the ability to override the destination output sink. This could be used to redirect output to a file, a tee writer or an in-memory buffer for test purposes.

Default to os.Stdout if user does not specify a custom output sink.

fixes GH-140

Add ExitState.SetOutputTarget method to provide client code
the ability to override the destination output sink. This
could be used to redirect output to a file, a tee writer
or an in-memory buffer for test purposes.

Default to os.Stdout if user does not specify a custom output
sink.

refs GH-140
@atc0005 atc0005 added enhancement New feature or request output labels Sep 16, 2022
@atc0005 atc0005 added this to the Next Release milestone Sep 16, 2022
@atc0005 atc0005 self-assigned this Sep 16, 2022
@atc0005 atc0005 merged commit 3400877 into master Sep 16, 2022
@atc0005 atc0005 deleted the i140-add-support-for-setting-preferred-output branch September 16, 2022 12:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request output
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Extend ExitState to allow setting desired output
1 participant