mirror of
https://github.com/k8sgpt-ai/k8sgpt.git
synced 2025-09-25 23:10:05 +00:00
chore: fixing filters
Signed-off-by: Alex Jones <alexsimonjones@gmail.com>
This commit is contained in:
@@ -39,7 +39,12 @@ var listCmd = &cobra.Command{
|
|||||||
if len(inactiveFilters) != 0 {
|
if len(inactiveFilters) != 0 {
|
||||||
fmt.Printf(color.YellowString("Unused: \n"))
|
fmt.Printf(color.YellowString("Unused: \n"))
|
||||||
for _, filter := range inactiveFilters {
|
for _, filter := range inactiveFilters {
|
||||||
fmt.Printf("> %s\n", color.RedString(filter))
|
// if the filter is an integration, mark this differently
|
||||||
|
if util.SliceContainsString(integrationFilters, filter) {
|
||||||
|
fmt.Printf("> %s\n", color.BlueString("%s (integration)\n", filter))
|
||||||
|
} else {
|
||||||
|
fmt.Printf("> %s\n", color.RedString(filter))
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user