Repository navigation
Commit 8c452cd
committed
Flush CSV rows to stdout as each result is found (#319)
With -format csv, stdout rows sat in encoding/csv's 4 KB buffer until
it filled or Finish ran, so a pipe saw no live results and a force quit
lost every buffered row; text, JSON and JSONL are written as found.
writeCSVRows now flushes the stdout CSV writer after each result. The
-o file stays buffered behind its own bufio.Writer.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Fixes #3191 parent dd0e2a5 commit 8c452cd
3 files changed
Lines changed: 27 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| 66 | + | |
66 | 67 | | |
67 | 68 | | |
68 | 69 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
375 | 375 | | |
376 | 376 | | |
377 | 377 | | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
378 | 384 | | |
379 | 385 | | |
380 | 386 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
118 | 137 | | |
119 | 138 | | |
120 | 139 | | |
| |||
125 | 144 | | |
126 | 145 | | |
127 | 146 | | |
128 | | - | |
| 147 | + | |
129 | 148 | | |
130 | 149 | | |
131 | 150 | | |
| |||
0 commit comments