(def io.Writer)
| 410 | } |
| 411 | |
| 412 | func (c *Command) getOut(def io.Writer) io.Writer { |
| 413 | if c.outWriter != nil { |
| 414 | return c.outWriter |
| 415 | } |
| 416 | if c.HasParent() { |
| 417 | return c.parent.getOut(def) |
| 418 | } |
| 419 | return def |
| 420 | } |
| 421 | |
| 422 | func (c *Command) getErr(def io.Writer) io.Writer { |
| 423 | if c.errWriter != nil { |
no test coverage detected