From 009f47c8e8ee6d3ce9b36110c36edae97690c949 Mon Sep 17 00:00:00 2001 From: AlexsJones Date: Mon, 27 Mar 2023 12:55:46 +0100 Subject: [PATCH] chore: return success on no issues Signed-off-by: AlexsJones --- cmd/analyze/analyze.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmd/analyze/analyze.go b/cmd/analyze/analyze.go index 986afbf520..43570cd225 100644 --- a/cmd/analyze/analyze.go +++ b/cmd/analyze/analyze.go @@ -87,6 +87,9 @@ var AnalyzeCmd = &cobra.Command{ var bar *progressbar.ProgressBar if len(*analysisResults) > 0 { bar = progressbar.Default(int64(len(*analysisResults))) + } else { + color.Green("{ \"status\": \"OK\" }") + os.Exit(0) } // This variable is used to store the results that will be printed