Commit cd0cda5
Default stream: parallel scan + stdout serialization (#8)
* feat(cmd): parallel default run with streaming scan
- Replace blocking scan+process with runRainDefaultStream (git-fire-style):
cancellable scan, upsert/filter pipeline, FetchWorkers pool, atomic totals
- Per-repo output via runRainOnRepo with [N/M] headers and mutex-serialized blocks
- Scan progress ticker (2s), post-run TTY scan-wait or non-interactive cancel
- Tests: streaming integration, helper coverage, fetchFailureMessage/weather/outcome/buildKnownPaths/upsert
* fix(lint): silence Fprint* errcheck and drop unused printRainBranchResults
* fix(default stream): remove dead scan-wait block and sync ticker output
Drop unreachable post-worker scan prompt (scan always finishes before
repoChan closes). Serialize folder-progress lines with printMu like
worker output. Await scanDone before reading scanErr to avoid a race.
Co-authored-by: Ben Schellenberger <bschellenberger2600@users.noreply.github.com>
* fix: remove dead stdinInteractiveOK; serialize default-stream summary under printMu
Co-authored-by: Ben Schellenberger <bschellenberger2600@users.noreply.github.com>
---------
Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: Ben Schellenberger <bschellenberger2600@users.noreply.github.com>1 parent 265e6e7 commit cd0cda5
3 files changed
Lines changed: 14 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
692 | 692 | | |
693 | 693 | | |
694 | 694 | | |
| 695 | + | |
695 | 696 | | |
696 | 697 | | |
697 | 698 | | |
698 | 699 | | |
699 | 700 | | |
700 | 701 | | |
701 | 702 | | |
| 703 | + | |
702 | 704 | | |
| 705 | + | |
703 | 706 | | |
704 | 707 | | |
705 | 708 | | |
| |||
790 | 793 | | |
791 | 794 | | |
792 | 795 | | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
793 | 799 | | |
794 | 800 | | |
795 | 801 | | |
796 | 802 | | |
797 | 803 | | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
798 | 807 | | |
799 | 808 | | |
800 | 809 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
30 | 29 | | |
31 | 30 | | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
| 92 | + | |
| 93 | + | |
92 | 94 | | |
93 | 95 | | |
94 | | - | |
95 | | - | |
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
101 | | - | |
102 | | - | |
103 | 101 | | |
| 102 | + | |
104 | 103 | | |
105 | 104 | | |
0 commit comments