Commit 0ee1058
feat(press): --follow streams live output as the press runs (#147)
buttons press NAME --follow
Tees child stdout/stderr to the CLI's stderr as each line arrives.
stdout lines print as-is; stderr lines are prefixed with '! ' so a
human can tell them apart at a glance. The final structured Result
still goes to stdout at the end, so agents can do:
buttons press X --follow --json 2> live-feed.log | jq .
— watching live progress on stderr while parsing the final JSON
on stdout. Pipe-safe, agent-safe, no TUI.
Answers "how do i press a button and follow the logs at the same
time" — one command, stdout and stderr cleanly separated.
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 8fe4743 commit 0ee1058
3 files changed
Lines changed: 33 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
273 | 273 | | |
274 | 274 | | |
275 | 275 | | |
| 276 | + | |
276 | 277 | | |
277 | 278 | | |
278 | 279 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
| |||
165 | 166 | | |
166 | 167 | | |
167 | 168 | | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
172 | 198 | | |
173 | 199 | | |
174 | 200 | | |
| |||
309 | 335 | | |
310 | 336 | | |
311 | 337 | | |
| 338 | + | |
312 | 339 | | |
313 | 340 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
42 | 43 | | |
43 | 44 | | |
44 | 45 | | |
| |||
0 commit comments