feat: initialize progressbar earlier
This commit is contained in:
parent
d3944e67b4
commit
f22da9364c
3 changed files with 25 additions and 20 deletions
|
|
@ -58,6 +58,10 @@ func fetchRepositoriesGitlab() ([]Repository, error) {
|
|||
return repositories, fmt.Errorf("ERROR: no repositories found\n")
|
||||
}
|
||||
|
||||
repoCount := len(repositories)
|
||||
bar.Set(0)
|
||||
bar.ChangeMax(repoCount)
|
||||
|
||||
logPrint("HTTP: Returning repositories found", nil)
|
||||
return repositories, nil
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue