mirror of
https://github.com/k8sgpt-ai/k8sgpt.git
synced 2025-09-20 10:55:07 +00:00
chore: return success on no issues
Signed-off-by: AlexsJones <alexsimonjones@gmail.com>
This commit is contained in:
@@ -87,6 +87,9 @@ var AnalyzeCmd = &cobra.Command{
|
|||||||
var bar *progressbar.ProgressBar
|
var bar *progressbar.ProgressBar
|
||||||
if len(*analysisResults) > 0 {
|
if len(*analysisResults) > 0 {
|
||||||
bar = progressbar.Default(int64(len(*analysisResults)))
|
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
|
// This variable is used to store the results that will be printed
|
||||||
|
Reference in New Issue
Block a user