MCPcopy
hub / github.com/docker/docker-agent / NewPrinter

Function NewPrinter

pkg/cli/printer.go:37–46  ·  view source on GitHub ↗
(out io.Writer)

Source from the content-addressed store, hash-verified

35}
36
37func NewPrinter(out io.Writer) *Printer {
38 isTTY := false
39 if f, ok := out.(*os.File); ok {
40 isTTY = isatty.IsTerminal(f.Fd())
41 }
42 return &Printer{
43 out: out,
44 isTTYOut: isTTY,
45 }
46}
47
48func (p *Printer) Println(a ...any) {
49 fmt.Fprintln(p.out, a...)

Callers 15

runPushCommandFunction · 0.92
runAPICommandMethod · 0.92
runDebugSkillsCommandMethod · 0.92
runModelsListCommandMethod · 0.92
runAliasAddCommandFunction · 0.92
runAliasListCommandFunction · 0.92
runAliasRemoveCommandFunction · 0.92
runPullCommandMethod · 0.92
runChatCommandMethod · 0.92
runA2ACommandMethod · 0.92
discardPrinterFunction · 0.92

Calls 1

IsTerminalMethod · 0.80