From 7913419ee3d1b93ac754f21c1f7ad80f9b098ed6 Mon Sep 17 00:00:00 2001 From: Ramana Reddy <90540245+RamanaReddy0M@users.noreply.github.com> Date: Thu, 1 Feb 2024 21:00:51 +0530 Subject: [PATCH] Write json output to stdout (#69) * Write json output to stdout * version update --------- Co-authored-by: sandeep <8293321+ehsandeep@users.noreply.github.com> --- pkg/runner/banner.go | 2 +- pkg/runner/runner.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/runner/banner.go b/pkg/runner/banner.go index 9b5557b..d91069f 100644 --- a/pkg/runner/banner.go +++ b/pkg/runner/banner.go @@ -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() { diff --git a/pkg/runner/runner.go b/pkg/runner/runner.go index cf38d2d..1fabd49 100644 --- a/pkg/runner/runner.go +++ b/pkg/runner/runner.go @@ -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 {