Merge pull request #1207 from thaJeztah/output_add_padding
frontend: add padding to align steps in stagev0.7
commit
02adc6b7fb
|
@ -5,6 +5,7 @@ import (
|
|||
"context"
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"math"
|
||||
"net/url"
|
||||
"path"
|
||||
"path/filepath"
|
||||
|
@ -1325,7 +1326,7 @@ func prefixCommand(ds *dispatchState, str string, prefixPlatform bool, platform
|
|||
out += ds.stageName + " "
|
||||
}
|
||||
ds.cmdIndex++
|
||||
out += fmt.Sprintf("%d/%d] ", ds.cmdIndex, ds.cmdTotal)
|
||||
out += fmt.Sprintf("%*d/%d] ", int(1+math.Log10(float64(ds.cmdTotal))), ds.cmdIndex, ds.cmdTotal)
|
||||
return out + str
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue