listr-update-renderer
Advanced tools
Comparing version 0.2.0 to 0.3.0
12
index.js
@@ -57,3 +57,4 @@ 'use strict'; | ||
showSubtasks: true, | ||
collapse: true | ||
collapse: true, | ||
clear: false | ||
}, options); | ||
@@ -73,3 +74,3 @@ } | ||
end() { | ||
end(err) { | ||
if (this._id) { | ||
@@ -81,3 +82,8 @@ clearInterval(this._id); | ||
render(this._tasks, this._options); | ||
logUpdate.done(); | ||
if (this._options.clear && err === undefined) { | ||
logUpdate.clear(); | ||
} else { | ||
logUpdate.done(); | ||
} | ||
} | ||
@@ -84,0 +90,0 @@ } |
{ | ||
"name": "listr-update-renderer", | ||
"version": "0.2.0", | ||
"version": "0.3.0", | ||
"description": "Listr update renderer", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -55,3 +55,10 @@ # listr-update-renderer [![Build Status](https://travis-ci.org/SamVerschueren/listr-update-renderer.svg?branch=master)](https://travis-ci.org/SamVerschueren/listr-update-renderer) | ||
### clear | ||
Type: `boolean`<br> | ||
Default: `false` | ||
Clear the output when all the tasks are executed succesfully. | ||
## Related | ||
@@ -58,0 +65,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6694
96
73