Skip to content

Commit

Permalink
fix: JSON output should only output json, fixed an issue where it wou…
Browse files Browse the repository at this point in the history
…ld output the file name. Added a better JSON output screenshot to the README.md
  • Loading branch information
djschleen authored Sep 22, 2024
1 parent 556d47a commit 4befac8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Binary file modified img/bomber-json.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 5 additions & 3 deletions lib/scanner.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,11 @@ func (s *Scanner) Scan(args []string) (exitCode int, err error) {
util.PrintWarning("OpenAI enrichment is experimental and may increase scanning time significantly")
}
if len(scanned) > 0 {
util.PrintInfo("Scanning Files:")
for _, f := range scanned {
util.PrintTabbed(f.Name)
if s.Output != "json" {
util.PrintInfo("Scanning Files:")
for _, f := range scanned {
util.PrintTabbed(f.Name)
}
}
}

Expand Down

0 comments on commit 4befac8

Please sign in to comment.