Sebastian Mark
bb790459c1
- add helper function to parse configuration from a YAML file
- update command-line parameters to include a config file option
- remove hardcoded Pomodoro settings and use parsed config instead
- delete obsolete PomodoroSettings.go file
🤖
11 lines
286 B
Go
11 lines
286 B
Go
package models
|
|
|
|
import (
|
|
"git.smsvc.net/pomodoro/GoTomato/pkg/models"
|
|
)
|
|
|
|
type ConfigFile struct {
|
|
URL string `yaml:"url"`
|
|
Password string `yaml:"password"`
|
|
PomodoroConfig models.GoTomatoPomodoroConfig `yaml:"config"`
|
|
}
|