tb-update-task-dates

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

设置任务日期

Set Task Dates

执行步骤

Execution Steps

  1. 读取
    .teambition.md
    常用项目和最近任务
  2. 让用户选择项目,获取任务列表后选择任务
  3. 设置截止日期(今天 / 明天 / 本周五 / 下周五 / 月底 / 自定义)
  4. 询问是否设置开始日期(不设置 / 今天 / 自定义)
  5. 自动转换为 ISO 格式,执行:
bash
node scripts/tb-api.mjs update-task-dates --taskId <ID> --dueDate <ISO> [--startDate <ISO>]
  1. 更新
    .teambition.md
    最近任务记录
规则:
  • 如果宿主支持交互选择控件,则使用交互选择
  • 如果宿主不支持交互选择控件,则直接在对话中询问用户
  • 不要自动替用户决定具体日期
  1. Read common projects and recent tasks from
    .teambition.md
  2. Ask the user to select a project, get the task list and then select the target task
  3. Set the due date (Today / Tomorrow / This Friday / Next Friday / End of month / Custom)
  4. Ask whether to set the start date (No setting / Today / Custom)
  5. Automatically convert to ISO format, execute:
bash
node scripts/tb-api.mjs update-task-dates --taskId <ID> --dueDate <ISO> [--startDate <ISO>]
  1. Update 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
  • Do not automatically determine the specific date for the user