kamiyo / multi-progress-bars

A multi progress bar library for CLI, with support for indefinite task spinners
MIT License
27 stars 4 forks source link

Setting percentage on addTask does not apply to bar #6

Closed Inrixia closed 3 years ago

Inrixia commented 3 years ago

When creating a new bar using .addTask trying to set the percentage of the bar using

bar.addTask("/=== SUMMARY ===\\", { type: "percentage", percentage: 0.5 });

for example the percentage is not set. I have to call bar.update(...) to set it.

kamiyo commented 3 years ago

Got it. I think the problem is line 237 in multi-progress-bars.ts, but I'll test if that fixes it and push a new version out.

kamiyo commented 3 years ago

check v3.2.3. Should be fixed.

Inrixia commented 3 years ago

Working :) Thanks <3