Codebase list golang-github-vbauerster-mpb / 5be98a7
OnComplete comment Vladimir Bauer 8 years ago
3 changed file(s) with 8 addition(s) and 10 deletion(s). Raw diff Collapse all Expand all
4444 mpb.PrependDecorators(
4545 // Display our name with one space on the right
4646 decor.Name(name, decor.WC{W: len(name) + 1, C: decor.DidentRight}),
47 // Replace ETA decorator with message, OnComplete event
47 // Replace ETA decorator with "done" message, OnComplete event
4848 decor.OnComplete(
4949 // ETA decorator with default eta age, and width reservation of 4
50 decor.ETA(decor.ET_STYLE_GO, 0, startBlock, decor.WC{W: 4}),
51 "done",
50 decor.ETA(decor.ET_STYLE_GO, 0, startBlock, decor.WC{W: 4}), "done",
5251 ),
5352 ),
5453 mpb.AppendDecorators(
8786 decor.Percentage(decor.WCSyncWidth),
8887 ),
8988 mpb.AppendDecorators(
90 // Replace ETA decorator with message, OnComplete event
89 // Replace ETA decorator with "done" message, OnComplete event
9190 decor.OnComplete(
9291 // ETA decorator with default eta age, and width reservation of 3
93 decor.ETA(decor.ET_STYLE_GO, 0, startBlock, decor.WC{W: 3}), "done!",
92 decor.ETA(decor.ET_STYLE_GO, 0, startBlock, decor.WC{W: 3}), "done",
9493 ),
9594 ),
9695 )
3030 decor.Percentage(decor.WCSyncWidth),
3131 ),
3232 mpb.AppendDecorators(
33 // Replace ETA decorator with message, OnComplete event
33 // Replace ETA decorator with "done" 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}), "done!",
36 decor.ETA(decor.ET_STYLE_GO, 0, startBlock, decor.WC{W: 3}), "done",
3737 ),
3838 ),
3939 )
2525 mpb.PrependDecorators(
2626 // Display our name with one space on the right
2727 decor.Name(name, decor.WC{W: len(name) + 1, C: decor.DidentRight}),
28 // Replace ETA decorator with message, OnComplete event
28 // Replace ETA decorator with "done" message, OnComplete event
2929 decor.OnComplete(
3030 // ETA decorator with default eta age, and width reservation of 4
31 decor.ETA(decor.ET_STYLE_GO, 0, startBlock, decor.WC{W: 4}),
32 "done",
31 decor.ETA(decor.ET_STYLE_GO, 0, startBlock, decor.WC{W: 4}), "done",
3332 ),
3433 ),
3534 mpb.AppendDecorators(