From 4ab05592633ae75de5a39d16495f57eb6ea263a2 Mon Sep 17 00:00:00 2001 From: jakka Date: Sat, 12 Apr 2025 19:30:05 +0300 Subject: reimplemented database in badger so it actually works --- cmd/init.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cmd/init.go') diff --git a/cmd/init.go b/cmd/init.go index 18e3b65..2459315 100644 --- a/cmd/init.go +++ b/cmd/init.go @@ -34,7 +34,7 @@ func getDb(cCtx *cli.Context) (context.Context, error) { return context.WithValue(cCtx.Context, "dbfile", ""), errors.New("failed to locate application data folder") } - return context.WithValue(cCtx.Context, "dbfile", filepath.Join(localFolder, "reencoder.db")), nil + return context.WithValue(cCtx.Context, "dbfile", filepath.Join(localFolder, "reencoder")), nil } if _, err := os.Stat(cCtx.Path("dbfile")); err != nil { return context.WithValue(cCtx.Context, "dbfile", ""), err @@ -52,7 +52,7 @@ func checkTools() error { return nil } -func initCmd(cCtx *cli.Context) (context.Context, error) { +func initArgs(cCtx *cli.Context) (context.Context, error) { if err := checkTools(); err != nil { return nil, err } -- cgit v1.3.1