(state: State, msg: string)
| 47 | } |
| 48 | }; |
| 49 | const drawProgress = (state: State, msg: string) => { |
| 50 | const active = Math.floor((value / max) * size); |
| 51 | return `${activeStyle(state)(S_PROGRESS_CHAR[style].repeat(active))}${styleText('dim', S_PROGRESS_CHAR[style].repeat(size - active))} ${msg}`; |
| 52 | }; |
| 53 | |
| 54 | const start = (msg = '') => { |
| 55 | previousMessage = msg; |
no test coverage detected