Skip to content

Commit

Permalink
[BREAKING CHANGE] Use Stdout (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
cristaloleg authored Jan 27, 2022
1 parent ad99142 commit 23e7558
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions acmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ type Config struct {
Version string

// Output is a destionation where result will be printed.
// Exported for testing purpose only, if nil os.Stderr is used.
// Exported for testing purpose only, if nil os.Stdout is used.
Output io.Writer

// Context for commands, if nil context based on os.Interrupt and syscall.SIGTERM will be used.
Expand Down Expand Up @@ -117,7 +117,7 @@ func (r *Runner) Exit(err error) {

func (r *Runner) init() error {
if r.cfg.Output == nil {
r.cfg.Output = os.Stderr
r.cfg.Output = os.Stdout
}

if r.cfg.Usage == nil {
Expand Down

0 comments on commit 23e7558

Please sign in to comment.