MCPcopy
hub / github.com/mislav/hub / verboseLog

Function verboseLog

cmd/cmd.go:138–146  ·  view source on GitHub ↗
(cmd *Cmd)

Source from the content-addressed store, hash-verified

136}
137
138func verboseLog(cmd *Cmd) {
139 if os.Getenv("HUB_VERBOSE") != "" {
140 msg := fmt.Sprintf("$ %s %s", cmd.Name, strings.Join(cmd.Args, " "))
141 if ui.IsTerminal(os.Stderr) {
142 msg = fmt.Sprintf("\033[35m%s\033[0m", msg)
143 }
144 ui.Errorln(msg)
145 }
146}

Callers 5

OutputMethod · 0.85
CombinedOutputMethod · 0.85
SuccessMethod · 0.85
SpawnMethod · 0.85
ExecMethod · 0.85

Calls 2

IsTerminalFunction · 0.92
ErrorlnFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…