Commit 91c3d314 authored by vaikas-google's avatar vaikas-google

fix the arguments in the call to searchCacheForPattern

parent d50e22c7
...@@ -27,7 +27,7 @@ func search(cmd *cobra.Command, args []string) error { ...@@ -27,7 +27,7 @@ func search(cmd *cobra.Command, args []string) error {
return errors.New("This command needs at least one argument (search string)") return errors.New("This command needs at least one argument (search string)")
} }
results, err := searchCacheForPattern(args[0], cacheDirectory()) results, err := searchCacheForPattern(cacheDirectory(), args[0])
if err != nil { if err != nil {
return err return err
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment