@zinn-dev/cli 0.28.0 → 0.28.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -67,7 +67,8 @@ export function presentTask(taskMatch: TaskWithKey): PresentedTask {
|
|
|
67
67
|
export function formatTask(presented: PresentedTask, options: { showsStatus?: boolean } = {}) {
|
|
68
68
|
const status = options.showsStatus ? ` | ${presented.status}` : "";
|
|
69
69
|
const column = formatTaskColumn(presented.column);
|
|
70
|
-
const
|
|
70
|
+
const hasDescription = presented.description != null && presented.description.length > 0;
|
|
71
|
+
const description = hasDescription ? ` | ${presented.description}` : "";
|
|
71
72
|
|
|
72
73
|
const priority = presented.priority == null ? "" : ` | Priority: ${presented.priority}`;
|
|
73
74
|
const labelText =
|
|
@@ -107,8 +108,8 @@ export function formatTaskList(
|
|
|
107
108
|
? ` | ${presentedTask.status.padEnd(longestStatusLength)}`
|
|
108
109
|
: "";
|
|
109
110
|
const descriptionPreview = formatTaskDescriptionPreview(presentedTask.description);
|
|
110
|
-
const
|
|
111
|
-
|
|
111
|
+
const hasDescriptionPreview = descriptionPreview.length > 0;
|
|
112
|
+
const description = hasDescriptionPreview ? ` | ${descriptionPreview}` : "";
|
|
112
113
|
const priority = formatTaskPriorityMarker(presentedTask.priority);
|
|
113
114
|
const column = formatTaskColumn(presentedTask.column, longestColumnNameLength);
|
|
114
115
|
|