chore
- minor refactor
This commit is contained in:
1 parent
7f85815839
commit
281d7d76d4
5 files changed
+38
-15
No files matched your search
+3
-7
@@ -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))
|
||||
}
|
||||
Reference in new issue
Block a user