fix(database): move database file to storage dir

This commit is contained in:
2026-02-09 23:23:24 +01:00
parent 205b70eeab
commit 7c5d319043
3 changed files with 16 additions and 12 deletions

View File

@@ -1,10 +1,7 @@
package main
import (
"log"
"tomatentum.net/svg-templater/internal/command"
"tomatentum.net/svg-templater/internal/database"
"tomatentum.net/svg-templater/pkg/format"
)
@@ -12,12 +9,6 @@ func main() {
if !format.CheckInkscape() {
panic("Inkscape not found")
}
if err := database.OpenSQLite(); err != nil {
log.Fatal("Failed opening DB:\n", err)
return
}
defer database.Close()
database.InitDB()
command.PrepareCommandLine()
command.HandleCommandline()
}