aboutsummaryrefslogtreecommitdiffstats
path: root/todolist/screen_printer.go
Commit message (Collapse)AuthorAgeFilesLines
* Fix the misaligned problem when listing prioritized todosQuey-Liang Kao2017-10-051-1/+1
|
* Refactor the formatter to an interface and rename itGrant Ammons2017-10-031-0/+131
This change refactors the formatter to be an interface called Printer. `NewApp` will use the functionality of `ScreenPrinter`, which is what I refactored the old `Formatter` class into. There is a new class the implements the `Printer` interface called `MemoryPrinter`, which will simply store the `groups` as they were passed to it. This will allow tests in `app_test.go` to become much more powerful, since `App` no longer needs to be tightly coupled to printing to the screen.