From 067f8360b57c8f69275e8cc31b318ea6ec847edf Mon Sep 17 00:00:00 2001 From: Miguel de la Cruz Date: Sat, 29 Feb 2020 14:27:36 +0100 Subject: [PATCH] Prints the amount of tickets found --- cmd/add.go | 3 +++ 1 file changed, 3 insertions(+) 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 }