Commit 8178a1b
download: Improve progress bar
The current progress information for downloads is a bit too verbose:
Downloading 1 files...
Downloading /home/teuf/.crc/cache/crc_libvirt_4.9.0.crcbundle 505MB / 2GB (17%) - 10.07MB/s ETA: 4m12s
It is also inconsistent with the progress information used for bundle
extraction. This commit switches the download code to use
github.com/cheggaaa/pb/v3 for progress, which is the same module as the
one used by the extract package.1 parent 0a882d3 commit 8178a1b
4 files changed
Lines changed: 32 additions & 207 deletions
File tree
- pkg/download
- vendor
- github.com/cavaliercoder/grab/grabui
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | 4 | | |
6 | 5 | | |
7 | 6 | | |
8 | 7 | | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
18 | 40 | | |
19 | 41 | | |
20 | 42 | | |
21 | 43 | | |
22 | 44 | | |
23 | 45 | | |
24 | 46 | | |
25 | | - | |
26 | 47 | | |
27 | 48 | | |
28 | | - | |
| 49 | + | |
29 | 50 | | |
30 | 51 | | |
31 | 52 | | |
32 | 53 | | |
33 | 54 | | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
39 | 58 | | |
40 | 59 | | |
41 | | - | |
42 | | - | |
| 60 | + | |
| 61 | + | |
43 | 62 | | |
44 | 63 | | |
45 | 64 | | |
46 | | - | |
47 | | - | |
| 65 | + | |
| 66 | + | |
48 | 67 | | |
49 | 68 | | |
50 | 69 | | |
| |||
Lines changed: 0 additions & 166 deletions
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
59 | 58 | | |
60 | 59 | | |
61 | 60 | | |
| |||
0 commit comments