From ec230004e4abc3a203ca2e27b1df1eb469c4de96 Mon Sep 17 00:00:00 2001 From: Simon Cornet Date: Thu, 2 Jan 2025 23:35:14 +0100 Subject: [PATCH] feat: small fix --- cmd/gogitlabber/gitlab.go | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/cmd/gogitlabber/gitlab.go b/cmd/gogitlabber/gitlab.go index 8060514..1e1b8fa 100644 --- a/cmd/gogitlabber/gitlab.go +++ b/cmd/gogitlabber/gitlab.go @@ -62,9 +62,7 @@ func fetchRepositories() ([]Repository, error) { func checkoutRepositories(repositories []Repository) { repoCount := len(repositories) - // make progressbar using: - // - github.com/k0kubun/go-ansi - // - github.com/schollz/progressbar/v3 + // make progressbar barPrefix := fmt.Sprintf("Getting your one and only repository...") if repoCount > 1 { barPrefix = fmt.Sprintf("Getting your repositories...") @@ -108,7 +106,7 @@ func checkoutRepositories(repositories []Repository) { bar.Add(1) continue } - log.Printf("❌ Error cloning %s: %v\n%s", repoName, err, string(cloneOutput)) + log.Printf("❌ error cloning %s: %v\n%s", repoName, err, string(cloneOutput)) bar.Add(1) continue } @@ -124,8 +122,7 @@ func pullRepositories(repoDestination string) { pullOutput, err := pullCmd.CombinedOutput() if err != nil { - if strings.Contains(string(pullOutput), - "You have unstaged changes") { + if strings.Contains(string(pullOutput), "You have unstaged changes") { pullError = append(pullError, repoDestination) } }