MCPcopy Create free account
hub / github.com/cli/cli / showEscapes

Function showEscapes

script/ghmock/report.go:210–212  ·  view source on GitHub ↗

showEscapes writes the escape character as \e, so color codes such as \e[33m stay visible in reports and a missing reset can be spotted.

(text string)

Source from the content-addressed store, hash-verified

208// showEscapes writes the escape character as \e, so color codes such as
209// \e[33m stay visible in reports and a missing reset can be spotted.
210func showEscapes(text string) string {
211 return strings.ReplaceAll(text, "\x1b", `\e`)
212}
213
214// displayName names a request in reports, including blocked ones.
215func displayName(e loggedRequest) string {

Callers 2

printOutputFunction · 0.85
printDifferencesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected