Adds filter command

This commit is contained in:
Miguel de la Cruz 2020-02-29 14:29:32 +01:00
parent 067f8360b5
commit 75b6330243
2 changed files with 13 additions and 1 deletions

View file

@ -97,7 +97,7 @@ func RunGreps(dir string, strs, exts []string, caseInsensitive bool) ([]*model.T
tickets = model.RemoveDuplicateTickets(tickets) tickets = model.RemoveDuplicateTickets(tickets)
fmt.Printf("%d matches found\n", len(tickets)) fmt.Printf("%d matches found\n", len(tickets))
return tickets, nil return tickets, nil
} }

12
cmd/filter.go Normal file
View file

@ -0,0 +1,12 @@
package cmd
func FilterCmd() *cobra.Command {
return &cobra.Command{
Use: "filter",
Short: "Interactively filters the current ticket list",
Args: cobra.NoArgs,
Run: filterCmdF,
}
}
func filterCmdF(_ *cobra.Command, _ []string) {}