feat: add color output to terminal

- add color package for improved terminal output
- update terminal output to use colored text

🤖
This commit is contained in:
Sebastian Mark 2024-10-23 13:57:24 +02:00
parent 98013780da
commit ef0f940343
3 changed files with 17 additions and 8 deletions

6
go.mod
View file

@ -6,6 +6,7 @@ require (
atomicgo.dev/keyboard v0.2.9
git.smsvc.net/pomodoro/GoTomato v0.0.0-20241022065122-cb6616f400db
github.com/charmbracelet/log v0.4.0
github.com/fatih/color v1.18.0
github.com/gen2brain/beeep v0.0.0-20240516210008-9c006672e7f4
github.com/gorilla/websocket v1.5.3
)
@ -18,7 +19,8 @@ require (
github.com/go-toast/toast v0.0.0-20190211030409-01e6764cf0a4 // indirect
github.com/godbus/dbus/v5 v5.1.0 // indirect
github.com/lucasb-eyer/go-colorful v1.2.0 // indirect
github.com/mattn/go-isatty v0.0.18 // indirect
github.com/mattn/go-colorable v0.1.13 // indirect
github.com/mattn/go-isatty v0.0.20 // indirect
github.com/mattn/go-runewidth v0.0.15 // indirect
github.com/muesli/reflow v0.3.0 // indirect
github.com/muesli/termenv v0.15.2 // indirect
@ -26,5 +28,5 @@ require (
github.com/rivo/uniseg v0.4.7 // indirect
github.com/tadvi/systray v0.0.0-20190226123456-11a2b8fa57af // indirect
golang.org/x/exp v0.0.0-20231006140011-7918f672742d // indirect
golang.org/x/sys v0.13.0 // indirect
golang.org/x/sys v0.25.0 // indirect
)