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

Function tasks

packages/prompts/src/task.ts:23–32  ·  view source on GitHub ↗
(tasks: Task[], opts?: CommonOptions)

Source from the content-addressed store, hash-verified

21 * Define a group of tasks to be executed
22 */
23export const tasks = async (tasks: Task[], opts?: CommonOptions) => {
24 for (const task of tasks) {
25 if (task.enabled === false) continue;
26
27 const s = spinner(opts);
28 s.start(task.title);
29 const result = await task.task(s.message);
30 s.stop(result || task.title);
31 }
32};

Callers

nothing calls this directly

Calls 3

spinnerFunction · 0.85
startMethod · 0.80
stopMethod · 0.80

Tested by

no test coverage detected