feat: add version and protocol version

- define GoTomatoVersion constant for versioning
- add protocol version field to all server messages
- add `-version` cli parameter
- update README

🤖
This commit is contained in:
Sebastian Mark 2024-10-22 17:18:05 +02:00
parent 4eedfcb965
commit 232fe409cb
4 changed files with 23 additions and 7 deletions

View file

@ -8,4 +8,5 @@ type ServerMessage struct {
TimeLeft int `json:"time_left"` // Remaining time in seconds
Ongoing bool `json:"ongoing"` // Ongoing pomodoro
Paused bool `json:"paused"` // Is timer paused
GoTomatoVersion string `json:"version"` // Version of the server
}