npkgz / cli-progress

:hourglass: easy to use progress-bar for command-line/terminal applications
https://www.npmjs.com/package/cli-progress
MIT License
1.11k stars 84 forks source link

Payload does not work #128

Closed paul-uz closed 2 years ago

paul-uz commented 2 years ago

Same issue as here https://github.com/npkgz/cli-progress/issues/63

OP fixed it using the formatter, but I'd prefer it to work out of the box as per the documentation.

Can this be looked into?

AndiDittrich commented 2 years ago

not sure what's wrong, #63 shows the correct code which is exactly documented like this

paul-uz commented 2 years ago

https://github.com/npkgz/cli-progress/issues/63 only worked because they used the format option.

The documentation for using the payload (in a multibar, which is what I am using) does not show the format option being used with a payload, see here https://github.com/npkgz/cli-progress#example-1

I even tried using the payload key of filename like in the example, but that didn't work either.

It only works when using the format option.

AndiDittrich commented 2 years ago

ok sry, i've to add the format option to this particular example

AndiDittrich commented 2 years ago

docs have been updated