listr2
Advanced tools
Comparing version 1.1.4 to 1.1.5
@@ -44,3 +44,3 @@ "use strict"; | ||
if (task.hasTitle()) { | ||
const taskTitle = !task.isSkipped() ? task === null || task === void 0 ? void 0 : task.title : `${task === null || task === void 0 ? void 0 : task.output} ${chalk_1.default.dim('[SKIPPED]')}`; | ||
const taskTitle = !task.isSkipped() ? `${task === null || task === void 0 ? void 0 : task.title}` : `${task === null || task === void 0 ? void 0 : task.output} ${chalk_1.default.dim('[SKIPPED]')}`; | ||
output.push(this.formatString(taskTitle, this.getSymbol(task, this.options), level)); | ||
@@ -66,3 +66,6 @@ } | ||
const subtaskLevel = !task.hasTitle() ? level : level + 1; | ||
output = [...output, this.multiLineRenderer(task.subtasks, subtaskLevel)]; | ||
const subtaskRender = this.multiLineRenderer(task.subtasks, subtaskLevel); | ||
if (subtaskRender !== '') { | ||
output = [...output, subtaskRender]; | ||
} | ||
} | ||
@@ -99,3 +102,3 @@ if (task.isCompleted()) { | ||
formatString(string, icon, level) { | ||
return `${cli_truncate_1.default(indent_string_1.default(`${icon} ${string}`, (level) * this.indentation), process.stdout.columns - 3)}`; | ||
return `${cli_truncate_1.default(indent_string_1.default(`${icon} ${string}`, level * this.indentation), process.stdout.columns - 3)}`; | ||
} | ||
@@ -102,0 +105,0 @@ getSymbol(task, options) { |
{ | ||
"name": "listr2", | ||
"version": "1.1.4", | ||
"version": "1.1.5", | ||
"description": "Terminal task list reborn!", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
Sorry, the diff of this file is not supported yet
75079
1122