feat: allow clients to send pomodoro config

- allow clients to send custom configuration for pomodoro sessions
- update RunPomodoro to accept a configuration parameter
- modify startTimer to handle session count from config
- add default pomodoro configuration in client command handling

🤖
This commit is contained in:
Sebastian Mark 2024-10-20 23:09:30 +02:00
parent 9149b1a78e
commit 314e71acba
6 changed files with 45 additions and 22 deletions

View file

@ -8,7 +8,8 @@ import (
// ClientCommand represents a command from the client (start/stop).
type ClientCommand struct {
Command string `json:"command"`
Command string `json:"command"`
Config GoTomatoPomodoroConfig `json:"config"`
}
type Client struct {