MCPcopy
hub / github.com/pterm/pterm / GetFormattedPrefix

Method GetFormattedPrefix

prefix_printer.go:336–338  ·  view source on GitHub ↗

GetFormattedPrefix returns the Prefix as a styled text string.

()

Source from the content-addressed store, hash-verified

334
335// GetFormattedPrefix returns the Prefix as a styled text string.
336func (p PrefixPrinter) GetFormattedPrefix() string {
337 return p.Prefix.Style.Sprint(" " + p.Prefix.Text + " ")
338}
339
340// GetWriter returns the Writer if set, otherwise defaultWriter.
341func (p PrefixPrinter) GetWriter() io.Writer {

Callers 2

SprintMethod · 0.95

Calls 1

SprintMethod · 0.65

Tested by 1