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

Method OutOrStdout

command.go:393–395  ·  view source on GitHub ↗

OutOrStdout returns output to stdout.

()

Source from the content-addressed store, hash-verified

391
392// OutOrStdout returns output to stdout.
393func (c *Command) OutOrStdout() io.Writer {
394 return c.getOut(os.Stdout)
395}
396
397// OutOrStderr returns output to stderr
398func (c *Command) OutOrStderr() io.Writer {

Callers 7

TestSetOutputFunction · 0.95
TestSetOutFunction · 0.95
HelpFuncMethod · 0.95
executeMethod · 0.95
initCompleteCmdMethod · 0.80
TestHelpFuncExecutedFunction · 0.80

Calls 1

getOutMethod · 0.95

Tested by 3

TestSetOutputFunction · 0.76
TestSetOutFunction · 0.76
TestHelpFuncExecutedFunction · 0.64