splited tick to two functions #7

Closed
wants to merge 1 commit into
from

Projects

None yet

4 participants

@agate
agate commented Apr 9, 2012

Hi visionmedia,

I know I can set the steam to store the output. But sometimes people wants to get the progress bar as a string. So they can handle it by themselves. For example: I want to draw a multi progress bar. I will maintain a progress bar array. print all the progress bars in the same time.

So I splited the function: tick into two functions "increase" and "toString"

You can take a look my code. It's not too much changes. And it can keep the old tick work correctly. But this change can give this lib new ability to give user current status manually.

If you think the function name is not good you can change it whatever you want.

@agate agate refacted progress lib.
  - splited tick to two functions:
    - increase
    - toString
6c87b3c
agate commented Apr 9, 2012

also. I changed the version from 0.0.4 to 0.0.5. But I don't modify the History file. You can edit that by yourself :D

+1

Contributor
hallas commented Sep 8, 2013

this has to be updated and merged back with the current master, will eventually clean up if we don't receive any updates

Collaborator
jdan commented Sep 16, 2013

Dupe of #35

@jdan jdan closed this Sep 16, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment