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

Function fakeProgress

examples/basic/progress.ts:5–11  ·  view source on GitHub ↗
(progressbar: ProgressResult)

Source from the content-addressed store, hash-verified

3import * as p from '@clack/prompts';
4
5async function fakeProgress(progressbar: ProgressResult): Promise<void> {
6 await setTimeout(1000);
7 for (const _i in Array(10).fill(1)) {
8 progressbar.advance();
9 await setTimeout(100 + Math.random() * 500);
10 }
11}
12
13async function demo() {
14 p.intro('progress start...');

Callers 1

demoFunction · 0.85

Calls 1

advanceMethod · 0.80

Tested by

no test coverage detected