falcon-listr-update-renderer

0.4.2 • Public • Published

falcon-listr-update-renderer

Note: This renderer is based on v0.4.0 of the original listr-update-renderer, created by Sam Verschueren.

Install

$ npm install --save falcon-listr-update-renderer

Usage

const FalconUpdaterRenderer = require('falcon-listr-update-renderer');
const Listr = require('listr');
 
const list = new Listr([
    {
        title: 'foo',
        task: () => Promise.resolve('bar')
    }
], {
    renderer: FalconUpdaterRenderer,
    collapse: false
});
 
list.run();

Options

These options should be provided in the Listr options object.

showSubtasks

Type: boolean
Default: true

Set to false if you want to disable the rendering of the subtasks. Subtasks will be rendered if an error occurred in one of them.

collapse

Type: boolean
Default: true

Set to false if you don't want subtasks to be hidden after the main task succeed.

clearOutput

Type: boolean
Default: false

Clear the output when all the tasks are executed succesfully.

Related

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.4.2
    6
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.4.2
    6
  • 0.4.1
    2

Package Sidebar

Install

npm i falcon-listr-update-renderer

Weekly Downloads

8

Version

0.4.2

License

MIT

Unpacked Size

6.71 kB

Total Files

5

Last publish

Collaborators

  • vivekmchawla