feat(cli): colorize help page (#9589)

This commit is contained in:
Ammar Bandukwala
2023-09-08 18:21:33 +00:00
committed by GitHub
parent 11404af9ca
commit e361f1107b
86 changed files with 1224 additions and 920 deletions
+5
View File
@@ -51,6 +51,11 @@ var (
Blue = color.Color("#5000ff")
)
// Color returns a color for the given string.
func Color(s string) termenv.Color {
return color.Color(s)
}
func isTerm() bool {
return color != termenv.Ascii
}