style: improve readability
This commit is contained in:
parent
c998fbfbdf
commit
1e07df59d7
1 changed files with 11 additions and 2 deletions
|
|
@ -116,6 +116,7 @@ func checkoutRepositories(repositories []Repository) {
|
||||||
bar.Add(1)
|
bar.Add(1)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
pulledCount = pulledCount + 1
|
pulledCount = pulledCount + 1
|
||||||
bar.Add(1)
|
bar.Add(1)
|
||||||
continue
|
continue
|
||||||
|
|
@ -135,7 +136,15 @@ func checkoutRepositories(repositories []Repository) {
|
||||||
fmt.Println("")
|
fmt.Println("")
|
||||||
|
|
||||||
// print summary
|
// print summary
|
||||||
fmt.Printf("Summary:\n Cloned repositories: %v\n Pulled repositories: %v\n Errors: %v\n", clonedCount, pulledCount, errorCount)
|
fmt.Printf(
|
||||||
|
"Summary:\n"+
|
||||||
|
" Cloned repositories: %v\n"+
|
||||||
|
" Pulled repositories: %v\n"+
|
||||||
|
" Errors: %v\n",
|
||||||
|
clonedCount,
|
||||||
|
pulledCount,
|
||||||
|
errorCount,
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
func cloneRepository(repoDestination string, gitlabUrl string) (string, error) {
|
func cloneRepository(repoDestination string, gitlabUrl string) (string, error) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue