fix(database): move database file to storage dir
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user