Skip to content

Releases: npkgz/cli-progress

Export formatter functions + ETA display limit change

31 Jan 10:14
Compare
Choose a tag to compare
  • 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

25 Jan 11:43
Compare
Choose a tag to compare
  • 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

02 Oct 14:31
Compare
Choose a tag to compare
  • Bugifx: synchronous update may cause unexpected behaviour on multibars - limited to single bars
  • Changed: renamed internal eta push() method to update()
  • Changed: moved internal eta calculation call into update()

Align Option; Improved ETA calculation

11 Aug 09:04
Compare
Choose a tag to compare
  • 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

03 Jan 12:39
Compare
Choose a tag to compare

Custom Payload Data/Tokens

23 Sep 07:20
Compare
Choose a tag to compare
  • Added: Additional payload data which can be used as custom-tokens within the bar - thanks to tobiasps on GitHub #15

Bugifx: Zero Values

10 Sep 08:13
Compare
Choose a tag to compare
  • 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

22 Aug 08:59
Compare
Choose a tag to compare
  • Added: 0 values for total/progress initialization are allowed - feature requested by jfmmm on GitHub #11

Preset/Theme support

22 Aug 08:59
Compare
Choose a tag to compare
  • 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

02 Dec 18:39
Compare
Choose a tag to compare
  • Added: stopOnComplete option to automatically call stop() when the value reaches the total - thanks to lennym on GitHub #7