Skip to content
This repository has been archived by the owner on Feb 16, 2022. It is now read-only.

fabiospampinato/listr-compose

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Listr Compose

Compose multiple listr task lists into one.

Install

npm install --save listr-compose

Usage

import * as Listr from 'listr';
import compose from 'listr-compose';

const listFoo = new Listr ([
  {
    title: 'Foo',
    task: () => true
  }
]);

const listBar = new Listr ([
  {
    title: 'Bar',
    task: () => true
  }
]);

const listFooBar = compose ( listFoo, listBar );

listFooBar.run ();

License

MIT © Fabio Spampinato

About

Compose multiple listr task lists into one.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages