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

Method skip

lib/task-wrapper.js:43–53  ·  view source on GitHub ↗
(message)

Source from the content-addressed store, hash-verified

41 }
42
43 skip(message) {
44 if (message && typeof message !== 'string') {
45 throw new TypeError(`Expected \`message\` to be of type \`string\`, got \`${typeof message}\``);
46 }
47
48 if (message) {
49 this._task.output = message;
50 }
51
52 this._task.state = state.SKIPPED;
53 }
54
55 run(ctx) {
56 return this._task.run(ctx, this);

Callers 4

example.jsFile · 0.80
runMethod · 0.80
enabled.jsFile · 0.80
task-wrapper.jsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected