diff --git a/cmd/add.go b/cmd/add.go index b1aea61..e7091ac 100644 --- a/cmd/add.go +++ b/cmd/add.go @@ -95,6 +95,9 @@ func RunGreps(dir string, strs, exts []string, caseInsensitive bool) ([]*model.T tickets = append(tickets, results...) } + tickets = model.RemoveDuplicateTickets(tickets) + fmt.Printf("%d matches found\n", len(tickets)) + return tickets, nil }