Adds filter command
This commit is contained in:
parent
067f8360b5
commit
75b6330243
2 changed files with 13 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
12
cmd/filter.go
Normal file
12
cmd/filter.go
Normal 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) {}
|
Loading…
Reference in a new issue