We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dc8f943 commit 76ee0ecCopy full SHA for 76ee0ec
cmd/wildcard/wildcard.go
@@ -20,6 +20,11 @@ var WildCardCmd = &cobra.Command{
20
log.Warn("zone can't empty")
21
return
22
}
23
- printer.PrintResult(scanner.DumpWildCard(command.Opts.Zone), command.Opts.OutputFile)
+ record := scanner.DumpWildCard(command.Opts.Zone)
24
+ if record == nil || len(record) == 0 {
25
+ log.Warnf("DumpWildCard Found Nothing")
26
+ return
27
+ }
28
+ printer.PrintResult(record, command.Opts.OutputFile)
29
},
30
0 commit comments