Commit f5f699d
fix(gmail): treat --body - as read-from-stdin sentinel
Passing `--body -` set the body to the literal "-" because parseBody only
fell back to stdin when --body was entirely absent. Piping a heredoc through
`--body -` therefore lost the message body. Now a bare "-" is treated as an
explicit stdin sentinel, matching the common CLI convention. Applies to both
`gmail send` and `gmail draft` (shared parseBody).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 5bf1fac commit f5f699d
1 file changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
33 | 35 | | |
34 | 36 | | |
35 | 37 | | |
| |||
0 commit comments