also fix color status in ccr status

This commit is contained in:
2026-05-27 09:59:56 +02:00
parent c92f10fb5d
commit b2da6f0f29
2 changed files with 11 additions and 5 deletions

View File

@@ -24,6 +24,7 @@ import (
var (
green = color.New(color.BgGreen, color.FgHiWhite).SprintFunc()
yellow = color.New(color.BgYellow, color.FgHiWhite).SprintFunc()
orange = color.BgRGB(255, 128, 0).AddRGB(0, 0, 0).SprintFunc()
red = color.New(color.BgRed, color.FgHiWhite).SprintFunc()
bold = color.New(color.Bold).SprintFunc()
@@ -42,6 +43,8 @@ func Colorize(conf *cfg.Config, col, what string) string {
what = orange(what)
case "red":
what = red(what)
case "yellow":
what = yellow(what)
}
return what