MCPcopy
hub / github.com/bombshell-dev/clack / drawProgress

Function drawProgress

packages/prompts/src/progress-bar.ts:49–52  ·  view source on GitHub ↗
(state: State, msg: string)

Source from the content-addressed store, hash-verified

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;

Callers 2

startFunction · 0.85
advanceFunction · 0.85

Calls 1

activeStyleFunction · 0.85

Tested by

no test coverage detected