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

Method check

lib/task.js:64–78  ·  view source on GitHub ↗
(ctx)

Source from the content-addressed store, hash-verified

62 }
63
64 check(ctx) {
65 // Check if a task is enabled or disabled
66 if (this._state === undefined && this._enabledFn) {
67 const isEnabled = this._enabledFn(ctx);
68
69 if (this._isEnabled !== isEnabled) {
70 this._isEnabled = isEnabled;
71
72 this.next({
73 type: 'ENABLED',
74 data: isEnabled
75 });
76 }
77 }
78 }
79
80 hasSubtasks() {
81 return this._subtasks.length > 0;

Callers 1

_checkAllMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected