Skip to content

Commit

Permalink
fix(progress bar): Removed Counters from the progress bar (#3989) (#4046
Browse files Browse the repository at this point in the history
)

Signed-off-by: João Reigota <[email protected]>
Co-authored-by: Rogério Peixoto <[email protected]>
  • Loading branch information
joaoReigota1 and rogeriopeixotocx authored Aug 13, 2021
1 parent 678938f commit 1dda0fc
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 . }}`)
if silent {
newPb.SetWriter(io.Discard)
}
Expand Down

0 comments on commit 1dda0fc

Please sign in to comment.