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:
parent
9149b1a78e
commit
2ac1aecba1
6 changed files with 46 additions and 22 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue