progress bar fix

This commit is contained in:
2024-05-21 16:44:36 +02:00
parent 5c3f352126
commit 064f30fc39
2 changed files with 4 additions and 1 deletions
+3
View File
@@ -6,3 +6,6 @@
# Output # Output
/bin /bin
# Lib
/lib
+1 -1
View File
@@ -20,7 +20,7 @@ type PackageVersion struct {
} }
func installPackage(packageName, packageVersion string) { func installPackage(packageName, packageVersion string) {
progress := ProgressBar{total: 10, length: 20, enabled: false} progress := ProgressBar{total: 10, length: 20, enabled: true}
progress.change(1, "", "Fetching") progress.change(1, "", "Fetching")
repoURL, err := getRepoURL(packageName) repoURL, err := getRepoURL(packageName)
if err != nil { if err != nil {