@@ -16,6 +16,28 @@ func (p *progressWithStatusBarsSimple) Complete() {
1616 writeStatusBars (p .Output , p .statusBars )
1717}
1818
19+ func (p * progressWithStatusBarsSimple ) StatusBarUpdatef (i int , format string , args ... interface {}) {
20+ if p .statusBars [i ] != nil {
21+ p .statusBars [i ].Updatef (format , args ... )
22+ }
23+ }
24+
25+ func (p * progressWithStatusBarsSimple ) StatusBarCompletef (i int , format string , args ... interface {}) {
26+ if p .statusBars [i ] != nil {
27+ wasComplete := p .statusBars [i ].completed
28+ p .statusBars [i ].Completef (format , args ... )
29+ if ! wasComplete {
30+ writeStatusBar (p .Output , p .statusBars [i ])
31+ }
32+ }
33+ }
34+
35+ func (p * progressWithStatusBarsSimple ) StatusBarResetf (i int , label , format string , args ... interface {}) {
36+ if p .statusBars [i ] != nil {
37+ p .statusBars [i ].Resetf (label , format , args ... )
38+ }
39+ }
40+
1941func newProgressWithStatusBarsSimple (bars []* ProgressBar , statusBars []* StatusBar , o * Output ) * progressWithStatusBarsSimple {
2042 p := & progressWithStatusBarsSimple {
2143 progressSimple : & progressSimple {
@@ -35,6 +57,7 @@ func newProgressWithStatusBarsSimple(bars []*ProgressBar, statusBars []*StatusBa
3557 case <- ticker .C :
3658 if p .Output .opts .Verbose {
3759 writeBars (p .Output , p .bars )
60+ writeStatusBars (p .Output , p .statusBars )
3861 }
3962
4063 case c := <- p .done :
0 commit comments