@unboundedsystems/listr-update-renderer

0.5.0-unb5 • Public • Published

listr-update-renderer Build Status

Listr update renderer

Install

$ npm install --save listr-update-renderer

Usage

const UpdaterRenderer = require('listr-update-renderer');
const Listr = require('listr');

const list = new Listr([
    {
        title: 'foo',
        task: () => Promise.resolve('bar')
    }
], {
    renderer: UpdaterRenderer,
	collapse: false
});

list.run();

Note: This is the default renderer for Listr and doesn't need to be specified.

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

License

MIT © Sam Verschueren

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.5.0-unb515latest

Version History

VersionDownloads (Last 7 Days)Published
0.5.0-unb515
0.5.0-unb40
0.5.0-unb30

Package Sidebar

Install

npm i @unboundedsystems/listr-update-renderer

Weekly Downloads

15

Version

0.5.0-unb5

License

MIT

Unpacked Size

7 kB

Total Files

5

Last publish

Collaborators

  • mr_roboto
  • mvachhar
  • mterrel