Phase 2 Testing: thread 子命令分组 #65

Closed
opened 2026-05-07 13:59:35 +00:00 by xiaomo · 0 comments
Owner

验证目标

run/list/show/rm/fork/ps/kill/pause/resume 收归 thread 子命令下。threadsthread listthread <id>thread show <id>

关联

Ref: #54

测试步骤

  • Step 1: help 输出包含 thread 子命令组

    bun run packages/cli-workflow/src/cli.ts 2>&1
    

    预期: usage 包含 thread run, thread list, thread show, thread rm, thread fork, thread ps, thread kill, thread pause, thread resume

  • Step 2: thread list 正常工作

    bun run packages/cli-workflow/src/cli.ts thread list
    

    预期: exit 0

  • Step 3: thread ps 正常工作

    bun run packages/cli-workflow/src/cli.ts thread ps
    

    预期: exit 0

  • Step 4: 单元测试通过

    cd packages/cli-workflow && bun test
    

    预期: 所有测试通过

  • Step 5: lint 通过

    bun run check
    

    预期: 无错误

## 验证目标 `run/list/show/rm/fork/ps/kill/pause/resume` 收归 `thread` 子命令下。`threads` → `thread list`,`thread <id>` → `thread show <id>`。 ## 关联 Ref: #54 ## 测试步骤 - [ ] **Step 1: help 输出包含 thread 子命令组** ```bash bun run packages/cli-workflow/src/cli.ts 2>&1 ``` **预期:** usage 包含 `thread run`, `thread list`, `thread show`, `thread rm`, `thread fork`, `thread ps`, `thread kill`, `thread pause`, `thread resume` - [ ] **Step 2: thread list 正常工作** ```bash bun run packages/cli-workflow/src/cli.ts thread list ``` **预期:** exit 0 - [ ] **Step 3: thread ps 正常工作** ```bash bun run packages/cli-workflow/src/cli.ts thread ps ``` **预期:** exit 0 - [ ] **Step 4: 单元测试通过** ```bash cd packages/cli-workflow && bun test ``` **预期:** 所有测试通过 - [ ] **Step 5: lint 通过** ```bash bun run check ``` **预期:** 无错误
xiaomo self-assigned this 2026-05-07 13:59:35 +00:00
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: uncaged/workflow#65