feat: add CLI flags to app
- implement command-line flags for listen address and port
- add usage section to README
🤖
This commit is contained in:
parent
85923b4469
commit
0b2f83cd35
3 changed files with 17 additions and 7 deletions
|
@ -8,6 +8,6 @@ type GoTomatoTimerConfig struct {
|
|||
}
|
||||
|
||||
type GoTomatoServerConfig struct {
|
||||
ListenAddress string `json:"listenAddress"`
|
||||
ListenPort int `json:"listenPort"`
|
||||
ListenAddress string `json:"listenAddress, default:"0.0.0.0"`
|
||||
ListenPort int `json:"listenPort, default:8080"`
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue