747 B
747 B
Case: send-reads-body-from-body-file
用例意义
验证 send --body-file 会把文件内容写入消息正文。
前置条件
TMPDIR/task.md已存在,内容为测试正文
输入
inbox --db TMPDIR/coord.db --json send --from leader --to worker-d --subject "Build admin editor" --summary "Create the first editor screen" --body-file TMPDIR/task.md
inbox --db TMPDIR/coord.db --json show --thread THREAD_ID
预期输出
send成功show首条消息的body与文件内容一致
断言结论
body-file内容会被原样读取- 该行为与直接传
--body的最终存储结果等价
补充约束
--body与--body-file互斥;该约束由 shared 文档统一说明