tb-delete-task

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

删除 TeamBition 任务

Delete TeamBition Tasks

执行步骤

Execution Steps

  1. 读取
    .teambition.md
    中的常用项目和最近任务
  2. 让用户选择项目,获取任务列表后选择任务
  3. 再次确认目标任务标题和 ID,避免误删
  4. 执行:
bash
node scripts/tb-api.mjs delete-task --taskId <ID>
  1. .teambition.md
    最近任务记录中移除该任务
规则:
  • 如果宿主支持交互选择控件,则使用交互选择
  • 如果宿主不支持交互选择控件,则直接在对话中询问用户
  • 删除前必须再次确认,不要自动删除
  1. Read common projects and recent tasks from
    .teambition.md
  2. Let the user select the project, obtain the task list and then select the task
  3. Confirm the target task title and ID again to avoid accidental deletion
  4. Execute:
bash
node scripts/tb-api.mjs delete-task --taskId <ID>
  1. Remove the task from the recent task records in
    .teambition.md
Rules:
  • If the host supports interactive selection controls, use interactive selection
  • If the host does not support interactive selection controls, directly ask the user in the conversation
  • Must confirm again before deletion, do not delete automatically