MCPcopy
hub / github.com/rclone/rclone / Color

Function Color

cmd/bisync/log.go:77–85  ·  view source on GitHub ↗

Color handles terminal colors for bisync

(style string, s string)

Source from the content-addressed store, hash-verified

75
76// Color handles terminal colors for bisync
77func 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
88func ColorX(style string, s string) string {

Callers 15

setCompareDefaultsMethod · 0.85
hashDiffersMethod · 0.85
setHashTypeMethod · 0.85
setFromCompareFlagMethod · 0.85
tryDownloadHashMethod · 0.85
setLockFileMethod · 0.85
setLockFileExpirationMethod · 0.85
renewLockFileMethod · 0.85
lockFileIsExpiredMethod · 0.85
WriteResultsMethod · 0.85
retryFastCopyMethod · 0.85
naptimeFunction · 0.85

Calls 3

StartFunction · 0.92
LockMethod · 0.65
UnlockMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…