WithOutput doc edit
Vladimir Bauer
3 years ago
| 76 | 76 | } |
| 77 | 77 | } |
| 78 | 78 | |
| 79 | // WithOutput overrides default os.Stdout output. Setting it to nil | |
| 80 | // will effectively disable auto refresh rate and discard any output, | |
| 81 | // useful if you want to disable progress bars with little overhead. | |
| 79 | // WithOutput overrides default os.Stdout output. If underlying io.Writer | |
| 80 | // is not a terminal then auto refresh is disabled unless ForceAutoRefresh | |
| 81 | // option is provided. | |
| 82 | 82 | func WithOutput(w io.Writer) ContainerOption { |
| 83 | 83 | if w == nil { |
| 84 | 84 | w = io.Discard |