Commit 3f34f30
Fix NUL byte validation comment and error guidance
The doc comment incorrectly claimed truncation occurs in relay JSON
serialization. Rust strings and JSON can represent NUL — the real
boundary is the OS command line on Windows, where a NUL terminates the
native command line before buzz.exe starts, so Clap never sees the NUL.
The error message recommended --content - (stdin), but validation runs
after read_or_stdin, so stdin content hits the same check. The actionable
workaround is a PowerShell literal here-string (single-quoted) piped
through stdin, which avoids backtick expansion entirely.
Add a help-contract regression test that verifies the error mentions
stdin and does not recommend --content -. Add a PowerShell here-string
example to the CLI README.
Addresses themiguelamador's review feedback.
Co-authored-by: Brad Groux <brad@digitalmeld.com>
Signed-off-by: Brad Groux <brad@digitalmeld.com>1 parent bfb2193 commit 3f34f30
2 files changed
Lines changed: 31 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
35 | 40 | | |
36 | 41 | | |
37 | 42 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
82 | 87 | | |
83 | 88 | | |
84 | 89 | | |
85 | | - | |
86 | | - | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
87 | 93 | | |
88 | 94 | | |
89 | 95 | | |
| |||
326 | 332 | | |
327 | 333 | | |
328 | 334 | | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
329 | 348 | | |
330 | 349 | | |
331 | 350 | | |
| |||
0 commit comments