Adjust settings functions

This commit is contained in:
Tom Neuber 2024-03-02 10:29:59 +01:00
parent c295d20b1a
commit 06eaff6503
Signed by: tom
GPG key ID: F17EFE4272D89FF6
2 changed files with 22 additions and 32 deletions

View file

@ -18,7 +18,11 @@ import (
)
func main() {
appSettings := cfg.Parse()
appSettings := cfg.NewAppSettings()
if err := appSettings.Parse(); err != nil {
panic(err)
}
handleGracefulShutdown()
if !downloader.FileExists(appSettings.DataFile) {
downloader.DownloadFile(appSettings.DataFile, appSettings.DataURL)