diff options
| author | jakka <jakkadoujin@gmail.com> | 2025-04-12 19:30:05 +0300 |
|---|---|---|
| committer | jakka <jakkadoujin@gmail.com> | 2025-04-12 19:30:05 +0300 |
| commit | 4ab05592633ae75de5a39d16495f57eb6ea263a2 (patch) | |
| tree | b674ee9229d9a85abb59fd03b2400d37e82ea915 /cmd/init.go | |
| parent | 1675136966473083e970badfe92433a05d2d7fee (diff) | |
reimplemented database in badger so it actually works
Diffstat (limited to 'cmd/init.go')
| -rw-r--r-- | cmd/init.go | 4 |
1 files changed, 2 insertions, 2 deletions
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 } |
