mirror of
https://github.com/schollz/croc.git
synced 2025-10-11 13:21:00 +02:00
update deps
This commit is contained in:
parent
86ebbaa618
commit
189d1f7b2a
3 changed files with 15 additions and 12 deletions
|
@ -972,6 +972,7 @@ func (c *Client) createEmptyFileAndFinish(fileInfo FileInfo, i int) (err error)
|
|||
progressbar.OptionSetDescription(description),
|
||||
progressbar.OptionSetRenderBlankState(true),
|
||||
progressbar.OptionShowBytes(true),
|
||||
progressbar.OptionShowCount(),
|
||||
progressbar.OptionSetWriter(os.Stderr),
|
||||
)
|
||||
c.bar.Finish()
|
||||
|
@ -1056,6 +1057,7 @@ func (c *Client) updateState() (err error) {
|
|||
progressbar.OptionSetDescription(description),
|
||||
progressbar.OptionSetRenderBlankState(true),
|
||||
progressbar.OptionShowBytes(true),
|
||||
progressbar.OptionShowCount(),
|
||||
progressbar.OptionSetWriter(os.Stderr),
|
||||
)
|
||||
c.bar.Finish()
|
||||
|
@ -1099,6 +1101,7 @@ func (c *Client) setBar() {
|
|||
progressbar.OptionSetDescription(description),
|
||||
progressbar.OptionSetRenderBlankState(true),
|
||||
progressbar.OptionShowBytes(true),
|
||||
progressbar.OptionShowCount(),
|
||||
progressbar.OptionSetWriter(os.Stderr),
|
||||
progressbar.OptionThrottle(100*time.Millisecond),
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue