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

Method ErrOrStderr

command.go:403–405  ·  view source on GitHub ↗

ErrOrStderr returns output to stderr

()

Source from the content-addressed store, hash-verified

401
402// ErrOrStderr returns output to stderr
403func (c *Command) ErrOrStderr() io.Writer {
404 return c.getErr(os.Stderr)
405}
406
407// InOrStdin returns input to stdin
408func (c *Command) InOrStdin() io.Reader {

Callers 3

TestSetErrFunction · 0.95
PrintErrMethod · 0.95
initCompleteCmdMethod · 0.80

Calls 1

getErrMethod · 0.95

Tested by 1

TestSetErrFunction · 0.76