Skip to content

Commit

Permalink
optimize progress bar
Browse files Browse the repository at this point in the history
  • Loading branch information
kavishgr committed May 1, 2024
1 parent b5be773 commit 690239f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion github/github_releases.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ func DownloadRelease(urlsChan chan string, job *sync.WaitGroup, ghtoken, tempdir
progressbar.OptionSetWriter(ansi.NewAnsiStdout()),
progressbar.OptionEnableColorCodes(true),
progressbar.OptionClearOnFinish(),
progressbar.OptionSetElapsedTime(false),
progressbar.OptionSetElapsedTime(true),
progressbar.OptionShowBytes(true),
progressbar.OptionSetWidth(15),
progressbar.OptionSetDescription(fmt.Sprintf("%s", file)),
Expand All @@ -145,6 +145,7 @@ func DownloadRelease(urlsChan chan string, job *sync.WaitGroup, ghtoken, tempdir

if skipextraction {
fmt.Printf("Downloaded: %s\n", file)
bar.Close()
return
}

Expand Down

0 comments on commit 690239f

Please sign in to comment.