MCPcopy Index your code
hub / github.com/coder/coder / Bold

Function Bold

cli/cliui/cliui.go:71–76  ·  view source on GitHub ↗

Bold returns a formatter that renders text in bold if the terminal supports it.

(s string)

Source from the content-addressed store, hash-verified

69// Bold returns a formatter that renders text in bold
70// if the terminal supports it.
71func Bold(s string) string {
72 if !isTerm() {
73 return s
74 }
75 return pretty.Sprint(pretty.Bold(), s)
76}
77
78// BoldFmt returns a formatter that renders text in bold
79// if the terminal supports it.

Callers 14

ServerMethod · 0.92
PrintLogoFunction · 0.92
templateInitMethod · 0.92
templatePullMethod · 0.92
CreateMethod · 0.92
displayAppliedPresetFunction · 0.92
displayVariableInfoFunction · 0.92
support.goFile · 0.92
proxyServerMethod · 0.92
RichParameterFunction · 0.85
PromptFunction · 0.85

Calls 1

isTermFunction · 0.85

Tested by

no test coverage detected