所有命令 · evidence
pm item learnings
List, add, edit, or delete learnings for an item.
Adds or reviews post-implementation learnings for future work.
用法
pm item learnings [options] <id> [text]参数
| <id> | Item id | 必填 |
|---|---|---|
| <text> | Optional learning text shorthand for --add | 可选 |
选项
| --add <text> | Append learning text; use text=<value> or - for stdin | 可选 |
|---|---|---|
| --stdin | Read learning text from stdin | 可选 |
| --file <path> | Read learning text from a file or stdin (-) | 可选 |
| --edit <index> | Replace one learning using positional text, --add, --stdin, or --file | 可选 |
| --delete <index> | Delete the learning at 1-based <index> | 可选 |
| --limit <n> | Return only latest n learnings | 可选 |
| --full-history | Return complete learning history instead of a bounded receipt | 可选 |
| --if-absent | Append only when resolved author and text are absent | 可选 |
| --author [value] | Learning author (optional; falls back to PM_AUTHOR/settings) | 可选 |
| --message <value> | History message | 可选 |
| --force | Force ownership override | 可选 |
示例
pm item learnings pm-a1b2 --add "Avoid direct test-runner commands in linked tests; use sandbox runner."