Commit 4637bc8
docs: document single-use command tree invariant
The builder's PreRunE mutates Cobra flag annotations to bypass
required-flag validation for --request-schema / --response-schema.
This is safe because each CLI invocation builds a fresh command tree.
Document this invariant in CLAUDE.md and AGENTS.md so future changes
don't accidentally introduce command reuse.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 7bbf538 commit 4637bc8
2 files changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
47 | 50 | | |
48 | 51 | | |
49 | 52 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
45 | 48 | | |
46 | 49 | | |
47 | 50 | | |
| |||
0 commit comments