Skip to content

Commit

Permalink
WithOutput doc edit
Browse files Browse the repository at this point in the history
  • Loading branch information
vbauerster committed Feb 14, 2023
1 parent c63ba68 commit ae293b2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions container_option.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@ func WithShutdownNotifier(ch chan<- interface{}) ContainerOption {
}
}

// WithOutput overrides default os.Stdout output. Setting it to nil
// will effectively disable auto refresh rate and discard any output,
// useful if you want to disable progress bars with little overhead.
// WithOutput overrides default os.Stdout output. If underlying io.Writer
// is not a terminal then auto refresh is disabled unless ForceAutoRefresh
// option is provided.
func WithOutput(w io.Writer) ContainerOption {
if w == nil {
w = io.Discard
Expand Down

0 comments on commit ae293b2

Please sign in to comment.