GoTomato/pkg/models/config.go
Sebastian Mark 0b2f83cd35 feat: add CLI flags to app
- implement command-line flags for listen address and port
- add usage section to README

🤖
2024-10-20 14:55:02 +02:00

13 lines
344 B
Go

package models
type GoTomatoTimerConfig struct {
Work int `json:"work"`
ShortBreak int `json:"shortBreak"`
LongBreak int `json:"longBreak"`
Sessions int `json:"sessions"`
}
type GoTomatoServerConfig struct {
ListenAddress string `json:"listenAddress, default:"0.0.0.0"`
ListenPort int `json:"listenPort, default:8080"`
}