Only show selection if results were found
Fixes
@@ -27,6 +27,10 @@ func (s *Action) Find(c *cli.Context) error {
}
}
+ if len(choices) < 1 {
+ return fmt.Errorf("not results found")
+ }
+
if len(choices) == 1 {
fmt.Println(color.GreenString("Found exact match in '%s'", choices[0]))
return s.show(c, choices[0], "", false, false, false)
