From 7d8899e1d2bf45511d10670dd9a6ad386afb8da1 Mon Sep 17 00:00:00 2001 From: xengineering Date: Sat, 4 May 2024 20:07:35 +0200 Subject: model: Introduce type Storage This new type definition will make it easier to handle the storage directory of Ceres and related functionality which can be implemented with methods. --- main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'main.go') diff --git a/main.go b/main.go index 7b65bf4..937fa8e 100644 --- a/main.go +++ b/main.go @@ -30,7 +30,8 @@ func main() { os.Exit(0) } - model.InitStorage(config.StorageFilePath, gitDescribe) + storage := model.Storage{Path: config.StorageFilePath} + storage.Init(gitDescribe) model.InitDatabase(config.StorageFilePath) defer model.CloseDatabase() -- cgit v1.2.3-70-g09d2