diff --git a/cmd/add.go b/cmd/add.go index e7091ac..8e979e5 100644 --- a/cmd/add.go +++ b/cmd/add.go @@ -97,7 +97,7 @@ func RunGreps(dir string, strs, exts []string, caseInsensitive bool) ([]*model.T tickets = model.RemoveDuplicateTickets(tickets) fmt.Printf("%d matches found\n", len(tickets)) - + return tickets, nil } diff --git a/cmd/filter.go b/cmd/filter.go new file mode 100644 index 0000000..a84ee42 --- /dev/null +++ b/cmd/filter.go @@ -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) {}