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

[Code Quality]: default implementation for reader and writer #461

Merged

Conversation

joshfried-aws
Copy link
Contributor

@joshfried-aws joshfried-aws commented Feb 15, 2024

Issue #, if available:
N/A

Description of changes:
Misc code quality changes to make changes to our custom reader and writer.

Implement a default method for both (default now uses stdout and stderr), this reduces the verbosity when writing tests, as well as changing the signature of the Writer::new method, to only accept a single parameter, setting the err writer to stderr. To allow for more flexibility I added another method called new_with_err.


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

@joshfried-aws joshfried-aws changed the title Writer and reader tweaks [Code Quality]: default implementation for reader and writer Feb 15, 2024
Copy link
Contributor

@dannyvassallo dannyvassallo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Much cleaner!

@joshfried-aws joshfried-aws merged commit ac0fa41 into aws-cloudformation:main Feb 16, 2024
16 checks passed
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

4 participants