diff options
| author | Paul Buetow <paul@buetow.org> | 2026-02-22 13:54:56 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-02-22 13:54:56 +0200 |
| commit | 260ea4a8583f82cc64f20a6470af5a1eac88e783 (patch) | |
| tree | 65e2ca06176433cd18ab1a5d463763c44da2d9c6 | |
| parent | 37665bec9014a69e82e2c19e59fc40ce06feea77 (diff) | |
fix(cli): avoid dynamic format strings in Printf
| -rw-r--r-- | internal/cli/sync_handlers.go | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/internal/cli/sync_handlers.go b/internal/cli/sync_handlers.go index 3b079a8..b769b03 100644 --- a/internal/cli/sync_handlers.go +++ b/internal/cli/sync_handlers.go @@ -190,9 +190,9 @@ func HandleSyncAll(cfg *config.Config, flags *Flags) int { fmt.Printf("\n⚠️ Failed to generate script: %v\n", err) } else if scriptPath != "" { fmt.Printf("\n") - fmt.Printf(strings.Repeat("=", 70)) + fmt.Print(strings.Repeat("=", 70)) fmt.Printf("\n📋 ABANDONED BRANCH MANAGEMENT SCRIPT\n") - fmt.Printf(strings.Repeat("=", 70)) + fmt.Print(strings.Repeat("=", 70)) fmt.Printf("\n") fmt.Printf("Generated script: %s\n", scriptPath) fmt.Printf("\n") @@ -208,7 +208,7 @@ func HandleSyncAll(cfg *config.Config, flags *Flags) int { fmt.Printf(" 3. Delete branches: bash %s\n", scriptPath) fmt.Printf("\n") fmt.Printf("⚠️ WARNING: Review carefully before deleting branches!\n") - fmt.Printf(strings.Repeat("=", 70)) + fmt.Print(strings.Repeat("=", 70)) fmt.Printf("\n") } @@ -551,9 +551,9 @@ func syncCodebergRepos(cfg *config.Config, flags *Flags, repos []codeberg.Reposi fmt.Printf("\n⚠️ Failed to generate script: %v\n", err) } else if scriptPath != "" { fmt.Printf("\n") - fmt.Printf(strings.Repeat("=", 70)) + fmt.Print(strings.Repeat("=", 70)) fmt.Printf("\n📋 ABANDONED BRANCH MANAGEMENT SCRIPT\n") - fmt.Printf(strings.Repeat("=", 70)) + fmt.Print(strings.Repeat("=", 70)) fmt.Printf("\n") fmt.Printf("Generated script: %s\n", scriptPath) fmt.Printf("\n") @@ -569,7 +569,7 @@ func syncCodebergRepos(cfg *config.Config, flags *Flags, repos []codeberg.Reposi fmt.Printf(" 3. Delete branches: bash %s\n", scriptPath) fmt.Printf("\n") fmt.Printf("⚠️ WARNING: Review carefully before deleting branches!\n") - fmt.Printf(strings.Repeat("=", 70)) + fmt.Print(strings.Repeat("=", 70)) fmt.Printf("\n") } @@ -692,9 +692,9 @@ func syncGitHubRepos(cfg *config.Config, flags *Flags, repos []github.Repository fmt.Printf("\n⚠️ Failed to generate script: %v\n", err) } else if scriptPath != "" { fmt.Printf("\n") - fmt.Printf(strings.Repeat("=", 70)) + fmt.Print(strings.Repeat("=", 70)) fmt.Printf("\n📋 ABANDONED BRANCH MANAGEMENT SCRIPT\n") - fmt.Printf(strings.Repeat("=", 70)) + fmt.Print(strings.Repeat("=", 70)) fmt.Printf("\n") fmt.Printf("Generated script: %s\n", scriptPath) fmt.Printf("\n") @@ -710,7 +710,7 @@ func syncGitHubRepos(cfg *config.Config, flags *Flags, repos []github.Repository fmt.Printf(" 3. Delete branches: bash %s\n", scriptPath) fmt.Printf("\n") fmt.Printf("⚠️ WARNING: Review carefully before deleting branches!\n") - fmt.Printf(strings.Repeat("=", 70)) + fmt.Print(strings.Repeat("=", 70)) fmt.Printf("\n") } |
