MCPcopy Index your code
hub / github.com/bombshell-dev/clack / advance

Function advance

packages/prompts/src/progress-bar.ts:58–62  ·  view source on GitHub ↗
(step = 1, msg?: string)

Source from the content-addressed store, hash-verified

56 spin.start(drawProgress('initial', msg));
57 };
58 const advance = (step = 1, msg?: string): void => {
59 value = Math.min(max, step + value);
60 spin.message(drawProgress('active', msg ?? previousMessage));
61 previousMessage = msg ?? previousMessage;
62 };
63 return {
64 start,
65 stop: spin.stop,

Callers 1

progressFunction · 0.85

Calls 2

drawProgressFunction · 0.85
messageMethod · 0.80

Tested by

no test coverage detected