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

Function BoldFmt

cli/cliui/cliui.go:80–85  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

78// BoldFmt returns a formatter that renders text in bold
79// if the terminal supports it.
80func BoldFmt() pretty.Formatter {
81 if !isTerm() {
82 return pretty.Style{}
83 }
84 return pretty.Bold()
85}
86
87// Timestamp formats a timestamp for display.
88func Timestamp(t time.Time) string {

Callers 3

runReleaseFunction · 0.92
promptAndUpdateDocsFunction · 0.92
ProvisionerJobFunction · 0.85

Calls 1

isTermFunction · 0.85

Tested by

no test coverage detected