Color handles terminal colors for bisync
(style string, s string)
| 75 | |
| 76 | // Color handles terminal colors for bisync |
| 77 | func Color(style string, s string) string { |
| 78 | ColorsLock.Lock() |
| 79 | defer ColorsLock.Unlock() |
| 80 | if !Colors { |
| 81 | return s |
| 82 | } |
| 83 | terminal.Start() |
| 84 | return style + s + terminal.Reset |
| 85 | } |
| 86 | |
| 87 | // ColorX handles terminal colors for bisync |
| 88 | func ColorX(style string, s string) string { |
no test coverage detected
searching dependent graphs…