feat: renamed verbose to debug and improved the messages
This commit is contained in:
parent
5207524381
commit
7b5cb295ff
5 changed files with 35 additions and 36 deletions
|
|
@ -76,7 +76,7 @@ func checkoutRepositories(repositories []Repository, concurrency int) {
|
|||
// set a lock, increment counters, update progressbar and unlock
|
||||
mu.Lock()
|
||||
clonedCount++
|
||||
if !verbose {
|
||||
if !debug {
|
||||
// update the progress bar
|
||||
descriptionPrefixPre := "Cloning repository "
|
||||
descriptionPrefix := descriptionPrefixPre + repoName + " ..."
|
||||
|
|
@ -89,7 +89,7 @@ func checkoutRepositories(repositories []Repository, concurrency int) {
|
|||
case strings.Contains(string(repoStatus), url):
|
||||
logPrint("Decided to pull repository: "+repoName, nil)
|
||||
pullRepository(repoName, repoDestination)
|
||||
if !verbose {
|
||||
if !debug {
|
||||
descriptionPrefixPre := "Pulling repository "
|
||||
descriptionPrefix := descriptionPrefixPre + repoName + " ..."
|
||||
bar.Describe(descriptionPrefix)
|
||||
|
|
@ -103,7 +103,7 @@ func checkoutRepositories(repositories []Repository, concurrency int) {
|
|||
// set a lock, increment counters and unlock
|
||||
mu.Lock()
|
||||
errorCount++
|
||||
if !verbose {
|
||||
if !debug {
|
||||
progressBarAdd(1)
|
||||
}
|
||||
mu.Unlock()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue