File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -36,11 +36,26 @@ func makeColorFunc(color string) func(string) string {
3636 }
3737}
3838
39+ // Magenta outputs ANSI color if stdout is a tty
3940var Magenta = makeColorFunc ("magenta" )
41+
42+ // Cyan outputs ANSI color if stdout is a tty
4043var Cyan = makeColorFunc ("cyan" )
44+
45+ // Red outputs ANSI color if stdout is a tty
4146var Red = makeColorFunc ("red" )
47+
48+ // Yellow outputs ANSI color if stdout is a tty
4249var Yellow = makeColorFunc ("yellow" )
50+
51+ // Blue outputs ANSI color if stdout is a tty
4352var Blue = makeColorFunc ("blue" )
53+
54+ // Green outputs ANSI color if stdout is a tty
4455var Green = makeColorFunc ("green" )
56+
57+ // Gray outputs ANSI color if stdout is a tty
4558var Gray = makeColorFunc ("black+h" )
59+
60+ // Bold outputs ANSI color if stdout is a tty
4661var Bold = makeColorFunc ("default+b" )
You can’t perform that action at this time.
0 commit comments