Implement connstring handling #247

Merged
lash merged 28 commits from lash/purify-more into master 2025-01-09 13:03:29 +01:00
Showing only changes of commit 599815c343 - Show all commits

View File

@ -88,22 +88,12 @@ func main() {
MenuSeparator: menuSeparator,
}
<<<<<<< HEAD
menuStorageService := storage.NewMenuStorageService(connData, resourceDir)
=======
resourceDir := scriptDir
menuStorageService := storage.NewMenuStorageService(dbDir, resourceDir)
if gettextDir != "" {
menuStorageService = menuStorageService.WithGettext(gettextDir, langs.Langs())
}
err = menuStorageService.EnsureDbDir()
if err != nil {
fmt.Fprintf(os.Stderr, err.Error())
os.Exit(1)
}
>>>>>>> master
rs, err := menuStorageService.GetResource(ctx)
if err != nil {
fmt.Fprintf(os.Stderr, err.Error())