@simonfestl/husky-cli 0.8.2 → 0.8.3
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/commands/task.js +6 -6
- package/package.json +1 -1
package/dist/commands/task.js
CHANGED
|
@@ -182,7 +182,7 @@ taskCommand
|
|
|
182
182
|
renderItem: (task) => {
|
|
183
183
|
const statusIcon = task.status === "done" ? "✓" : task.status === "in_progress" ? "▶" : "○";
|
|
184
184
|
const priorityIcon = task.priority === "urgent" ? "🔴" : task.priority === "high" ? "🟠" : "";
|
|
185
|
-
return ` ${statusIcon} ${task.id.
|
|
185
|
+
return ` ${statusIcon} ${task.id.padEnd(20)} │ ${task.title.slice(0, 40).padEnd(40)} ${priorityIcon}`;
|
|
186
186
|
},
|
|
187
187
|
selectableItems: true,
|
|
188
188
|
onSelect: async (task) => {
|
|
@@ -205,7 +205,7 @@ taskCommand
|
|
|
205
205
|
const pageSize = parseInt(options.perPage, 10);
|
|
206
206
|
printPaginated(tasks, pageNum, pageSize, (task) => {
|
|
207
207
|
const statusIcon = task.status === "done" ? "✓" : task.status === "in_progress" ? "▶" : "○";
|
|
208
|
-
return ` ${statusIcon} ${task.id.
|
|
208
|
+
return ` ${statusIcon} ${task.id.padEnd(20)} │ ${task.title}`;
|
|
209
209
|
}, "Tasks");
|
|
210
210
|
return;
|
|
211
211
|
}
|
|
@@ -1079,15 +1079,15 @@ function printTasks(tasks) {
|
|
|
1079
1079
|
if (statusTasks.length === 0)
|
|
1080
1080
|
continue;
|
|
1081
1081
|
console.log(`\n ${label}`);
|
|
1082
|
-
console.log(" " + "─".repeat(
|
|
1083
|
-
console.log(` ${"ID".padEnd(
|
|
1084
|
-
console.log(" " + "─".repeat(
|
|
1082
|
+
console.log(" " + "─".repeat(95));
|
|
1083
|
+
console.log(` ${"ID".padEnd(20)} ${"Title".padEnd(30)} ${"Project".padEnd(15)} ${"Project ID".padEnd(12)} ${"Priority".padEnd(6)}`);
|
|
1084
|
+
console.log(" " + "─".repeat(95));
|
|
1085
1085
|
for (const task of statusTasks) {
|
|
1086
1086
|
const agentStr = task.agent ? ` (${task.agent})` : "";
|
|
1087
1087
|
const doneStr = status === "done" ? " ✓" : "";
|
|
1088
1088
|
const projectName = task.projectName?.slice(0, 15).padEnd(15) || "—".padEnd(15);
|
|
1089
1089
|
const projectId = task.projectId?.slice(0, 12).padEnd(12) || "—".padEnd(12);
|
|
1090
|
-
console.log(` ${task.id.
|
|
1090
|
+
console.log(` ${task.id.padEnd(20)} ${task.title.slice(0, 30).padEnd(30)} ${projectName} ${projectId} ${task.priority.padEnd(6)}${agentStr}${doneStr}`);
|
|
1091
1091
|
}
|
|
1092
1092
|
}
|
|
1093
1093
|
console.log("");
|