Skip to content

Commit

Permalink
Write json output to stdout (#69)
Browse files Browse the repository at this point in the history
* Write json output to stdout

* version update

---------

Co-authored-by: sandeep <8293321+ehsandeep@users.noreply.github.com>
  • Loading branch information
RamanaReddy0M and ehsandeep committed Feb 1, 2024
1 parent 4860fb0 commit 7913419
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/runner/banner.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const banner = `
`

// Version is the current version
const Version = `v0.0.3`
const Version = `v0.0.4`

// showBanner is used to show the banner to the user
func showBanner() {
Expand Down
2 changes: 1 addition & 1 deletion pkg/runner/runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,7 @@ func outputJson(cve []types.CVEData) {
gologger.Error().Msgf("Error marshalling json: %s\n", err)
return
}
gologger.Print().Msgf("%s\n", string(json))
gologger.Silent().Msgf("%s\n", string(json))
}

func constructQueryParams(opts *Options) string {
Expand Down

0 comments on commit 7913419

Please sign in to comment.