UNPKG

@viewdo/dxp-story-cli

Version:
26 lines (20 loc) 417 B
class CustomRenderer { constructor(tasks, options) { this._tasks = tasks; this._options = Object.assign({}, options); } static get nonTTY() { return true; } render() { for (const task of this._tasks) { task.subscribe(event => { if (event.type === 'STATE' && task.isPending()) { console.log(`${task.title} [started]`); } }); } } end(err) { } } module.exports = CustomRenderer;