mirror of
https://github.com/spf13/cobra
synced 2024-11-24 14:47:12 +00:00
Fixed linter issues
This commit is contained in:
parent
4a716d101b
commit
0ea93dd60d
1 changed files with 2 additions and 2 deletions
|
@ -217,12 +217,12 @@ func (c *Command) SetOutput(output io.Writer) {
|
||||||
// SetOut sets the destination for usage messages.
|
// SetOut sets the destination for usage messages.
|
||||||
// If newOut is nil, os.Stdout is used.
|
// If newOut is nil, os.Stdout is used.
|
||||||
func (c *Command) SetOut(newOut io.Writer) {
|
func (c *Command) SetOut(newOut io.Writer) {
|
||||||
c.outWriter = newOut
|
c.outWriter = newOut
|
||||||
}
|
}
|
||||||
|
|
||||||
// SetErr sets the destination for error messages.
|
// SetErr sets the destination for error messages.
|
||||||
// If newErr is nil, os.Stderr is used.
|
// If newErr is nil, os.Stderr is used.
|
||||||
func (c *Command) SetErr(newErr io.Writer) {
|
func (c *Command) SetErr(newErr io.Writer) {
|
||||||
c.errWriter = newErr
|
c.errWriter = newErr
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue