feat: search cmd

chore: raw sql replaced with squirrel
fix: -n is now required for add cmd
This commit is contained in:
abelith committed 2026-08-15 18:38:26 +05:00
1 parent 80a90b65bb
commit 4447b7343f
9 files changed
+142 -27

No files matched your search

+3 -2
View File
@@ -18,11 +18,12 @@ type CLI struct {
root *cobra.Command
}
func NewCLI(app Application) *CLI {
root := NewRootCmd(app)
func NewCLI(ver string, app Application) *CLI {
root := NewRootCmd(ver, app)
root.AddCommand(
NewAddCommand(app),
NewRmCommand(app),
NewSearchCmd(app),
)
return &CLI{