Document 78

pull/4984/head
Thomas Stromberg 2019-08-05 16:32:54 -07:00
parent 2540253bcb
commit 38410704ed
1 changed files with 1 additions and 0 deletions

View File

@ -57,6 +57,7 @@ func (cpb *progressBar) TrackProgress(src string, currentSize, totalSize int64,
p.Set64(currentSize)
p.SetUnits(pb.U_BYTES)
p.Prefix(fmt.Sprintf(" %s:", filepath.Base(src)))
// Just a hair less than 80 (standard terminal width) for aesthetics & pasting into docs
p.SetWidth(78)
cpb.pool.Add(p)
reader := p.NewProxyReader(stream)