MCPcopy
hub / github.com/spf13/cobra / Printf

Method Printf

command.go:1445–1447  ·  view source on GitHub ↗

Printf is a convenience method to Printf to the defined output, fallback to Stderr if not set.

(format string, i ...interface{})

Source from the content-addressed store, hash-verified

1443
1444// Printf is a convenience method to Printf to the defined output, fallback to Stderr if not set.
1445func (c *Command) Printf(format string, i ...interface{}) {
1446 c.Print(fmt.Sprintf(format, i...))
1447}
1448
1449// PrintErr is a convenience method to Print to the defined Err output, fallback to Stderr if not set.
1450func (c *Command) PrintErr(i ...interface{}) {

Callers 3

executeMethod · 0.95
InitDefaultHelpCmdMethod · 0.95

Calls 1

PrintMethod · 0.95

Tested by 1