@vibetasks/cli 0.5.8 → 0.6.0
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/dist/bin/vibetasks.js +9 -1
- package/package.json +1 -1
package/dist/bin/vibetasks.js
CHANGED
|
@@ -977,7 +977,15 @@ ${filterMessages[filter] || "No tasks found"}.
|
|
|
977
977
|
const subtasks = task.subtasks_json || task.subtasks || [];
|
|
978
978
|
const doneCount = subtasks.filter((s) => s.done).length;
|
|
979
979
|
const totalCount = subtasks.length;
|
|
980
|
-
|
|
980
|
+
let progress = chalk4.gray("-");
|
|
981
|
+
if (totalCount > 0) {
|
|
982
|
+
const percentage = doneCount / totalCount * 100;
|
|
983
|
+
const barLength = 5;
|
|
984
|
+
const filled = Math.round(doneCount / totalCount * barLength);
|
|
985
|
+
const bar = "\u2588".repeat(filled) + "\u2591".repeat(barLength - filled);
|
|
986
|
+
const barColor = percentage === 100 ? chalk4.green : percentage >= 50 ? chalk4.cyan : chalk4.yellow;
|
|
987
|
+
progress = `${barColor(bar)} ${chalk4.cyan(`${doneCount}/${totalCount}`)}`;
|
|
988
|
+
}
|
|
981
989
|
if (options.shortIds) {
|
|
982
990
|
table.push([shortId, status, titleWithAI, progress, dueDate]);
|
|
983
991
|
} else {
|
package/package.json
CHANGED