progress bar

This commit is contained in:
2024-05-21 16:39:06 +02:00
parent 618b472d13
commit 5c3f352126
5 changed files with 62 additions and 15 deletions
+5 -2
View File
@@ -3,11 +3,14 @@ package main
import "fmt"
func showPackageInfo(packageName string) {
progress := ProgressBar{total: 4, length: 20}
progress.change(3, "", "Fetching")
repoURL, err := getRepoURL(packageName)
if err != nil {
fmt.Printf("Error getting repo URL: %v\n", err)
fmt.Printf("\nError getting repo URL: %v\n", err)
return
}
progress.clean()
// indexURL, err := findIndexURL(repoURL)
// if err != nil {
@@ -27,6 +30,6 @@ func showPackageInfo(packageName string) {
// fmt.Printf("Version: %s\n", version)
// fmt.Printf(" Author: %s\n", info.Author)
// fmt.Printf(" Description: %s\n", info.Description)
fmt.Println()
// fmt.Println()
// }
}