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

Method PrintWarning

pkg/cli/printer.go:73–75  ·  view source on GitHub ↗

PrintWarning prints a warning message on its own line. Used for non-fatal notices such as a turn that produced only reasoning or an empty response, which would otherwise be invisible in non-TUI runs.

(message string)

Source from the content-addressed store, hash-verified

71// notices such as a turn that produced only reasoning or an empty response,
72// which would otherwise be invisible in non-TUI runs.
73func (p *Printer) PrintWarning(message string) {
74 p.Printf("\n⚠️ %s\n", message)
75}
76
77// PrintAgentName prints the agent name header
78func (p *Printer) PrintAgentName(agentName string) {

Callers 1

RunFunction · 0.80

Calls 1

PrintfMethod · 0.95

Tested by

no test coverage detected