MCPcopy
hub / github.com/SamVerschueren/listr / runTask

Function runTask

index.js:8–14  ·  view source on GitHub ↗
(task, context, errors)

Source from the content-addressed store, hash-verified

6const ListrError = require('./lib/listr-error');
7
8const runTask = (task, context, errors) => {
9 if (!task.isEnabled()) {
10 return Promise.resolve();
11 }
12
13 return new TaskWrapper(task, errors).run(context);
14};
15
16class Listr {
17 constructor(tasks, opts) {

Callers 1

runMethod · 0.85

Calls 2

isEnabledMethod · 0.80
runMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…