mirror of
https://github.com/k8sgpt-ai/k8sgpt.git
synced 2025-08-31 14:53:07 +00:00
feat: bugfix for output
Signed-off-by: Alex Jones <alexsimonjones@gmail.com>
This commit is contained in:
@@ -139,9 +139,12 @@ var AnalyzeCmd = &cobra.Command{
|
|||||||
}
|
}
|
||||||
fmt.Println(string(j))
|
fmt.Println(string(j))
|
||||||
default:
|
default:
|
||||||
fmt.Printf("%s %s(%s): %s \n%s\n", color.CyanString("%d", n),
|
fmt.Printf("%s %s(%s)\n", color.CyanString("%d", n),
|
||||||
color.YellowString(analysis.Name), color.CyanString(analysis.ParentObject),
|
color.YellowString(analysis.Name), color.CyanString(analysis.ParentObject))
|
||||||
color.RedString(analysis.Error[0]), color.GreenString(analysis.Details))
|
for _, err := range analysis.Error {
|
||||||
|
fmt.Printf("- %s %s\n", color.RedString("Error:"), color.RedString(err))
|
||||||
|
}
|
||||||
|
color.GreenString(analysis.Details)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user