Skip to content

Commit

Permalink
fix(pb): Removed Counters from progress bar (#3989)
Browse files Browse the repository at this point in the history
Signed-off-by: João Reigota <[email protected]>
  • Loading branch information
joaoReigota1 committed Aug 13, 2021
1 parent 95ebf3e commit 9b815fa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/progress/counter/counter_progress.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ func NewProgressBar(label string, total int64, progress chan int64, wg *sync.Wai
newPb := pb.New64(total)
newPb.SetMaxWidth(barWidth)
newPb.Set("prefix", label)
newPb.SetTemplateString(`{{string . "prefix"}}{{bar . }} {{percent . }} {{speed . }}`)
if silent {
newPb.SetWriter(io.Discard)
}
Expand Down

0 comments on commit 9b815fa

Please sign in to comment.