feat: add tm tags command to remote (#1386)

Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
Ralph Khreish
2025-11-12 20:08:27 +01:00
committed by GitHub
parent e59c16c707
commit 63134a222c
154 changed files with 6037 additions and 1391 deletions

View File

@@ -130,8 +130,10 @@ async function updateTaskById(
}
const numericTaskId = Number(idStr);
const taskIndex = data.tasks.findIndex((task) => task.id === numericTaskId);
if (taskIndex === -1)
if (taskIndex === -1) {
report('error', `Task with ID ${numericTaskId} not found`);
throw new Error(`Task with ID ${numericTaskId} not found.`);
}
const taskToUpdate = data.tasks[taskIndex];
if (taskToUpdate.status === 'done' || taskToUpdate.status === 'completed') {
report(