feat: stream detailed TUI sync progress
Show live repository progress, elapsed time, active work, and recent outcomes during long syncs. Add a persistent post-run summary that prioritizes failures, reports protected and divergent branches, focuses the first issue, and lets users cycle through attention items with f.
This commit is contained in:
+7
-1
@@ -123,10 +123,16 @@ func TestStrictSyncRechecksAndSkipsNewlyDirtyRepository(t *testing.T) {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
results := syncAll(root, []repo{planned}, 1, time.Minute, io.Discard, true, true)
|
||||
var progress []syncProgressEvent
|
||||
results := syncSelectedWithProgress(root, []repo{planned}, []repo{planned}, 1, time.Minute, io.Discard, true, true, func(event syncProgressEvent) {
|
||||
progress = append(progress, event)
|
||||
})
|
||||
if len(results) != 1 || !results[0].Skipped || results[0].Success {
|
||||
t.Fatalf("syncAll() = %+v", results)
|
||||
}
|
||||
if len(progress) != 1 || progress[0].Started || !progress[0].Result.Skipped {
|
||||
t.Fatalf("progress events = %+v, want one finished skip", progress)
|
||||
}
|
||||
}
|
||||
|
||||
func TestScanReportsDirtyEligibleRepository(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user