Codebase list golang-github-vbauerster-mpb / c395cf9
one liners Vladimir Bauer 8 years ago
3 changed file(s) with 3 addition(s) and 9 deletion(s). Raw diff Collapse all Expand all
9090 // Replace ETA decorator with message, OnComplete event
9191 decor.OnComplete(
9292 // ETA decorator with default eta age, and width reservation of 3
93 decor.ETA(decor.ET_STYLE_GO, 0, startBlock, decor.WC{W: 3}),
94 "done!",
93 decor.ETA(decor.ET_STYLE_GO, 0, startBlock, decor.WC{W: 3}), "done!",
9594 ),
9695 ),
9796 )
5353 mpb.PrependDecorators(
5454 decor.Name(task, decor.WC{W: len(task) + 1, C: decor.DidentRight}),
5555 decor.OnComplete(decor.Name(job, decor.WCSyncSpaceR), "done!", decor.WCSyncSpaceR),
56 decor.OnComplete(
57 decor.ETA(decor.ET_STYLE_GO, 0, startBlock, decor.WCSyncWidth),
58 "",
59 decor.WCSyncSpace,
60 ),
56 decor.OnComplete(decor.ETA(decor.ET_STYLE_GO, 0, startBlock, decor.WCSyncWidth), "", decor.WCSyncSpace),
6157 ),
6258 mpb.AppendDecorators(
6359 decor.OnComplete(decor.Percentage(decor.WC{W: 5}), ""),
3333 // Replace ETA decorator with message, OnComplete event
3434 decor.OnComplete(
3535 // ETA decorator with default eta age, and width reservation of 3
36 decor.ETA(decor.ET_STYLE_GO, 0, startBlock, decor.WC{W: 3}),
37 "done!",
36 decor.ETA(decor.ET_STYLE_GO, 0, startBlock, decor.WC{W: 3}), "done!",
3837 ),
3938 ),
4039 )