MCPcopy
hub / github.com/go-task/task / FOutf

Method FOutf

internal/logger/logger.go:148–157  ·  view source on GitHub ↗

FOutf prints stuff to the given writer.

(w io.Writer, color Color, s string, args ...any)

Source from the content-addressed store, hash-verified

146
147// FOutf prints stuff to the given writer.
148func (l *Logger) FOutf(w io.Writer, color Color, s string, args ...any) {
149 if len(args) == 0 {
150 s, args = "%s", []any{s}
151 }
152 if !l.Color {
153 color = None
154 }
155 print := color()
156 print(w, s, args...)
157}
158
159// VerboseOutf prints stuff to STDOUT if verbose mode is enabled.
160func (l *Logger) VerboseOutf(color Color, s string, args ...any) {

Callers 5

OutfMethod · 0.95
PrintExperimentsMethod · 0.95
TestPrefixedWithColorFunction · 0.95
ListTasksMethod · 0.80
writeLineMethod · 0.80

Calls

no outgoing calls

Tested by 1

TestPrefixedWithColorFunction · 0.76