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

+12
View File
@@ -0,0 +1,12 @@
package models
func (sq *SearchQuery) IsEmpty() bool {
isEmpty := sq.Text == "" &&
sq.Name == "" &&
sq.Command == "" &&
sq.Description == "" &&
len(sq.Tags) < 1 &&
sq.Cursor == 0 &&
sq.Limit == 0
return isEmpty
}