Adds text output for when there are no results

This commit is contained in:
sloum 2024-03-21 15:56:08 -07:00
parent 99f58928c6
commit c610502f47
1 changed files with 3 additions and 1 deletions

View File

@ -135,7 +135,9 @@ func main() {
sort.Strings(out)
if *longList {
if len(out) == 0 {
fmt.Println("\033[3mNo results found\033[0m")
} else if *longList {
fmt.Println(strings.TrimSpace(strings.Join(out, "\n\n")))
} else {
fmt.Println(strings.TrimSpace(strings.Join(out, "\n")))