feat(tasktree): 完善导入与甘特详情体验
This commit is contained in:
@@ -25,7 +25,7 @@ function help() {
|
||||
mode: "local-dispatcher-default",
|
||||
usage: [
|
||||
"hwlab-cli tasktree health [--overapi]",
|
||||
"hwlab-cli tasktree group list|get|create|delete [--group ID] [--name TEXT]",
|
||||
"hwlab-cli tasktree group list|overview|get|create|delete [--group ID] [--name TEXT]",
|
||||
"hwlab-cli tasktree task create|update|delete --group ID|--task ID [--parent ID] --title TEXT --start ISO --due ISO --status STATUS",
|
||||
"hwlab-cli tasktree milestone create --group ID [--task ID] --title TEXT --at ISO",
|
||||
"hwlab-cli tasktree report create --task ID --title TEXT (--body TEXT|--body-file PATH)",
|
||||
@@ -42,6 +42,7 @@ async function commandFrom(parsed: Parsed): Promise<TaskTreeCommand> {
|
||||
if (group === "health") return { operation: "health" };
|
||||
if (group === "timeline") return { operation: "timeline.get", groupId: required(parsed, "group") };
|
||||
if (group === "group" && action === "list") return { operation: "group.list" };
|
||||
if (group === "group" && action === "overview") return { operation: "group.overview" };
|
||||
if (group === "group" && action === "get") return { operation: "group.get", groupId: required(parsed, "group") };
|
||||
if (group === "group" && action === "create") return { operation: "group.create", name: required(parsed, "name"), description: parsed.values.description };
|
||||
if (group === "group" && action === "delete") return { operation: "group.delete", groupId: required(parsed, "group") };
|
||||
|
||||
Reference in New Issue
Block a user