formatProbe renders results with custom probe fields
(group map[string]map[string]*baseline.Baseline, opts Option, probeFields string)
| 237 | |
| 238 | // formatProbe renders results with custom probe fields |
| 239 | func formatProbe(group map[string]map[string]*baseline.Baseline, opts Option, probeFields string) { |
| 240 | probes := strings.Split(probeFields, ",") |
| 241 | for _, results := range group { |
| 242 | for _, result := range results { |
| 243 | if !opts.Fuzzy && result.IsFuzzy { |
| 244 | continue |
| 245 | } |
| 246 | logs.Log.Console(result.ProbeOutput(probes) + "\n") |
| 247 | } |
| 248 | } |
| 249 | } |
| 250 | |
| 251 | func PrintPreset() { |
| 252 | logs.Log.Console("internal rules:\n") |