chelnak / gh-changelog

A gh cli extension that will make your changelogs ✨
MIT License
110 stars 4 forks source link

Simplify config printing #70

Closed chelnak closed 2 years ago

chelnak commented 2 years ago

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