Releases: vbauerster/mpb
mpb v4.5.0
Added:
- func NewWithContext(ctx context.Context, options ...ContainerOption) *Progress
- func BarParkTo(runningBar *Bar) BarOption
Deprecated:
- func WithContext(ctx context.Context) ContainerOption
- func BarReplaceOnComplete(runningBar *Bar) BarOption
Fixed bug in func (b *Bar) SetRefill(amount int64) and changed its signature from int to int64.
mpb v4.4.0
SetCurrent, colses #33
mpb v4.3.0
BarReverse option
mpb v4.2.0
- better windows support
- for posix terminals, ANSI sequence change from
CUU1,EL\rfor each line to singleCUUn,EDwhere n is line count. Hopefully should fix blinking effect. - for infrequent (long) refresh rates, there is no latency on bar complete event, i.e. bar quits as soon as it has been completed.
- added spinner decorator
- as usual it is go module
mpb v4.0.0
mpb v4 requires Go 1.10.3+ (or Go 1.9.7+)
mpb v4 is a Go module and thus breaks the import path; use "github.com/vbauerster/mpb/v4" and "github.com/vbauerster/mpb/v4/decor"
mpb 3.3.4
mpb 3.3.3
mpb 3.3.2
New Bar option BarNewLineExtend.
TimeNormalizer, to be used directly with MovingAverageETA.
Signature of Abort method has been changed a bit.
RefillBy deprecated, use SetRefill instead.
mpb 3.3.1
Added:
- func AverageETA(style int, wcc ...WC) Decorator
- func AverageSpeed(unit int, unitFormat string, wcc ...WC) Decorator
Removed start block channel parameter, in all ewma based decorators:
mpb 3.3.0
This release breaks some decorator function signature, but makes width related parameters optional.
For example before user had to specify width related params, even default ones:
mpb.PrependDecorators(decor.Name("name", 0, 0))Now if you're ok with defaults, just do:
mpb.PrependDecorators(decor.Name("name"))Decorator implementation completely decoupled from the core. For example in previous releases if user didn't use ETA decorator, it was calculated by core anyway. Now if you don't use ETA, it is not calculated at all, same applies to all decorators which need calculation.
There was issue #20 reported, which helped me to realize, that ETA decorator was tightly coupled to the core and it is not easy to re-implement it by the user. So now to re-implement ETA all you need is just to provide your own implementation of MovingAverage interface, if you don't like default ewma based implementation.
func MovingAverageETA(style int, average MovingAverage, sb chan time.Time, wcc ...WC) Decorator
Alternative implementation of MovingAverage interface, also provided:
Also I'd like to thank @xakep666, for his human friendly speed decorator pull request.