npm

Ready to take your JavaScript development to the next level? Meet npm Enterprise - the ultimate in enterprise JavaScript.Learn more »

listr-overwrite-renderer

0.4.1 • Public • Published

listr-update-renderer Build Status

Listr overwrite renderer

Install

$ npm install --save listr-overwrite-renderer

Usage

const UpdaterRenderer = require('listr-overwrite-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

install

npm i listr-overwrite-renderer

Downloadsweekly downloads

0

version

0.4.1

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability