chore: fixing filters

Signed-off-by: Alex Jones <alexsimonjones@gmail.com>
This commit is contained in:
Alex Jones
2023-04-11 15:10:21 +01:00
parent 4d20f70fb4
commit 258c69a17c

View File

@@ -39,9 +39,14 @@ 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 {
// 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)) fmt.Printf("> %s\n", color.RedString(filter))
} }
} }
}
}, },
} }