Skip to content

Commit c0a8cfa

Browse files
committed
remove super table
1 parent 606d44e commit c0a8cfa

File tree

1 file changed

+10
-24
lines changed

1 file changed

+10
-24
lines changed

internal/cmd/root.go

Lines changed: 10 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -532,36 +532,22 @@ func displayTableStats(stats *StatsCollector) {
532532
}
533533
fmt.Println(bot)
534534

535-
// Print horizontal line (same as sep) to section off summary
536-
fmt.Println(sep)
537-
538-
// Print summary row in table style
539-
summaryLabel := fmt.Sprintf("%-*s", repoCol, "Summary")
540-
summaryCombined := fmt.Sprintf("%*d", colWidths[1], stats.PRsCombined)
541-
totalSkipped := stats.PRsSkippedMergeConflict + stats.PRsSkippedCriteria
542-
summarySkipped := fmt.Sprintf("%-*s", colWidths[2], fmt.Sprintf("%d", totalSkipped))
543-
summaryStatus := fmt.Sprintf("%-*s", colWidths[3], fmt.Sprintf("%d repos", stats.ReposProcessed))
544-
fmt.Printf(
545-
"│ %-*s │ %s │ %s │ %s │\n",
546-
repoCol, summaryLabel,
547-
summaryCombined,
548-
summarySkipped,
549-
summaryStatus,
535+
// Print summary row
536+
fmt.Printf("\nSummary: Processed %d repos | Combined: %d | Skipped (MC): %d | Skipped (DNM): %d | Time: %s\n",
537+
stats.ReposProcessed,
538+
stats.PRsCombined,
539+
stats.PRsSkippedMergeConflict,
540+
stats.PRsSkippedCriteria,
541+
stats.EndTime.Sub(stats.StartTime).Round(time.Second),
550542
)
551543

552-
fmt.Println(sep)
553-
554-
// Print PR links block: label row, then each link as a plain line (no table formatting)
544+
// Print PR links block
555545
if len(stats.CombinedPRLinks) > 0 {
556-
prLinksLabel := fmt.Sprintf("%-*s", repoCol, "Links to Combined PRs")
557-
fmt.Printf("│ %-*s │\n", repoCol, prLinksLabel)
558-
// Print each link as a plain line, not inside the table
546+
fmt.Println("\nLinks to Combined PRs:")
559547
for _, link := range stats.CombinedPRLinks {
560-
fmt.Println(link)
548+
fmt.Println("-", link)
561549
}
562550
}
563-
564-
fmt.Println(bot)
565551
}
566552

567553
// pad returns a string of n runes of s (usually "─")

0 commit comments

Comments
 (0)