Releases: npkgz/cli-progress
Releases · npkgz/cli-progress
Export formatter functions + ETA display limit change
- Added: exported standard formatter and format helper
- Added: example howto use multibars in synchronous context
- Changed: upper eta display limit to
1e7
(115days) #92
Custom format functions, autopadding and more
- Added: support for custom time-format function
- Added: support for custom bar-format function
- Added: support for custom value-format function
- Added: auto-padding option to enforce fixed size of values - feature requested on GitHub
- Added:
barGlue
option to insert ascii escape sequences (e.g. for colorization) between the bar complete/incomplete elements - feature requested on GitHub - Bugfix:
eta
value can be negative for multibars in case the bar is alredy completed
Minor bugfix
- Bugifx: synchronous update may cause unexpected behaviour on multibars - limited to single bars
- Changed: renamed internal eta
push()
method toupdate()
- Changed: moved internal eta calculation call into
update()
Align Option; Improved ETA calculation
- Added:
align
option to change the position of the progress bar (left, center, right) - thanks to sidneys on GitHub #22 - Changed: ETA value of type
Infinity
is displayed as INF,NaN
as NULL - feature requested by AxelTerizaki on GitHub #21 - Changed: Limited the maximum ETA value to
100000s
(INF is displayed in this case) - Changed: ETA calculation moved to own scope
- Bugfix: example
example-notty.php
was broken
Enhanced increment() method
- Added: payload argument to
increment()
- feature requested by dsego on GitHub #18
Custom Payload Data/Tokens
- Added: Additional payload data which can be used as custom-tokens within the bar - thanks to tobiasps on GitHub #15
Bugifx: Zero Values
- Bugifx: Progressbar cannot be initialized to 0% - thanks to erikkallen on GitHub #13
- Bugfix: ETA was NULL in case the progress bar is initialized with (0/0)
"0 value" for total/progress initialization are allowed
- Added: 0 values for total/progress initialization are allowed - feature requested by jfmmm on GitHub #11
Preset/Theme support
- Added: Preset/Theme support. Different bar-styles can be loaded from internal library (in addition to full customization)
- Added: Dependency colors for colorized progress bars
- Added: Preset
legacy
- Added: Preset
shades-classic
- Added: Preset
shades-grey
- Added: Preset
rect
New Feature: stopOnComplete
- Added:
stopOnComplete
option to automatically callstop()
when the value reaches the total - thanks to lennym on GitHub #7