- minor refactor
This commit is contained in:
abelith committed 2026-08-08 17:18:34 +05:00
1 parent 7f85815839
commit 281d7d76d4
5 files changed
+38 -15

No files matched your search

+3 -7
View File
@@ -7,7 +7,7 @@ import (
"github.com/abelith/spellbook/internal/adapters/caster"
"github.com/abelith/spellbook/internal/adapters/sqlite"
"github.com/abelith/spellbook/internal/application"
"github.com/abelith/spellbook/internal/cli"
"github.com/abelith/spellbook/internal/controllers/cli"
_ "modernc.org/sqlite"
"os"
"os/signal"
@@ -33,11 +33,7 @@ func main() {
app := application.NewApplication(&caster.SpellCaster{}, repo, repo)
root := cli.NewRootCmd(app)
root.AddCommand(
cli.NewAddCommand(app),
cli.NewRmCommand(app),
)
c := cli.NewCLI(app)
handleErr(root.Execute())
handleErr(c.Run(ctx))
}