dominikbraun / timetrace

A simple CLI for tracking your working time.
Apache License 2.0
679 stars 75 forks source link

Move `Format*` functions into `Formatter` #101

Closed dominikbraun closed 3 years ago

dominikbraun commented 3 years ago

There are some Format* functions in timetrace.go:

https://github.com/dominikbraun/timetrace/blob/bf934a8e337aac5d955cd9368068a728e823b3f3/core/timetrace.go#L180-L190

Those functions should be part of the Formatter type in formatter.go. Once those functions are moved, they can then be called with t.Formatter().FormatXxx from the cli package.