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

Simplify config printing #70

Merged
merged 1 commit into from
May 15, 2022
Merged

Simplify config printing #70

merged 1 commit into from
May 15, 2022

Conversation

chelnak
Copy link
Owner

@chelnak chelnak commented May 15, 2022

After reading an article about unit testing stdout, it became clear that using bufio for this specific case was overkill. os.Stdout actually implements the writer interface, therefore it's possible to pass it straight in to the methods and switch out writer.Write for fmt.Fprint.

Closes #67

After reading an article about unit testing stdout, it became clear that
using bufio for this specific case was overkill. os.Stdout actually
implements the writer interface, therefore it's possible to pass it
straight in to the methods and switch out writer.Write for fmt.Fprint.
@chelnak chelnak added bug Something isn't working enhancement New feature or request and removed bug Something isn't working labels May 15, 2022
@chelnak chelnak merged commit f24a926 into main May 15, 2022
@chelnak chelnak deleted the simplify_printing_config branch May 15, 2022 20:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Refactor config print commands
1 participant