Skip to content

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

Merged
joshfried-aws merged 3 commits into
aws-cloudformation:mainfrom
joshfried-aws:writer_and_reader_tweaks
Feb 16, 2024
Merged

joshfried-aws merged 3 commits into
aws-cloudformation:mainfrom
joshfried-aws:writer_and_reader_tweaks

Conversation

@joshfried-aws

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

Copy link
Copy Markdown
Contributor

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

@dannyvassallo dannyvassallo left a comment

Copy link
Copy Markdown
Contributor

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
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.

4 participants