summaryrefslogtreecommitdiff
path: root/internal/cli
diff options
context:
space:
mode:
Diffstat (limited to 'internal/cli')
-rw-r--r--internal/cli/sync_handlers.go16
1 files changed, 16 insertions, 0 deletions
diff --git a/internal/cli/sync_handlers.go b/internal/cli/sync_handlers.go
index d14255e..dd0dcf9 100644
--- a/internal/cli/sync_handlers.go
+++ b/internal/cli/sync_handlers.go
@@ -66,6 +66,12 @@ func HandleSyncAll(cfg *config.Config, flags *Flags) int {
}
fmt.Printf("\nSuccessfully synced all %d repositories!\n", successCount)
+
+ // Print abandoned branches summary
+ if summary := syncer.GenerateAbandonedBranchSummary(); summary != "" {
+ fmt.Print(summary)
+ }
+
return 0
}
@@ -269,6 +275,11 @@ func syncCodebergRepos(cfg *config.Config, flags *Flags, repos []codeberg.Reposi
fmt.Printf("\n=== Summary ===\n")
fmt.Printf("Successfully synced: %d repositories\n", successCount)
+ // Print abandoned branches summary
+ if summary := syncer.GenerateAbandonedBranchSummary(); summary != "" {
+ fmt.Print(summary)
+ }
+
if !flags.SyncGitHubPublic {
return 0
}
@@ -304,6 +315,11 @@ func syncGitHubRepos(cfg *config.Config, flags *Flags, repos []github.Repository
fmt.Printf("\n=== Summary ===\n")
fmt.Printf("Successfully synced: %d repositories\n", successCount)
+ // Print abandoned branches summary
+ if summary := syncer.GenerateAbandonedBranchSummary(); summary != "" {
+ fmt.Print(summary)
+ }
+
return 0
}