From 642fed1cbf5160c89a93deab810bd44fb49d2a4a Mon Sep 17 00:00:00 2001 From: xengineering Date: Sun, 12 May 2024 00:12:55 +0200 Subject: Move config path from config to flags struct This is metadata about the config and thus does not belong to the config itself. Moving it to the struct holding flag values is straight forward since it is defined by flags. --- main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'main.go') diff --git a/main.go b/main.go index 38fde52..b77c803 100644 --- a/main.go +++ b/main.go @@ -24,8 +24,8 @@ func main() { defer log.Println("Ceres recipe server stopped") log.Printf("Version: %s", version) - if config.Path != "" { - config.Read() + if flags.config != "" { + config.Read(flags.config) } storage := model.NewStorage(config.StorageFilePath) -- cgit v1.2.3-70-g09d2