mirror of
https://github.com/containers/podman.git
synced 2025-10-18 11:42:55 +08:00
fix(deps): update module github.com/vbauerster/mpb/v8 to v8.5.2
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
This commit is contained in:
7
vendor/github.com/vbauerster/mpb/v8/bar_filler_spinner.go
generated
vendored
7
vendor/github.com/vbauerster/mpb/v8/bar_filler_spinner.go
generated
vendored
@ -1,7 +1,6 @@
|
||||
package mpb
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"io"
|
||||
"strings"
|
||||
|
||||
@ -75,15 +74,15 @@ func (s spinnerStyle) Build() BarFiller {
|
||||
switch s.position {
|
||||
case positionLeft:
|
||||
sf.position = func(frame string, padWidth int) string {
|
||||
return fmt.Sprint(frame, strings.Repeat(" ", padWidth))
|
||||
return frame + strings.Repeat(" ", padWidth)
|
||||
}
|
||||
case positionRight:
|
||||
sf.position = func(frame string, padWidth int) string {
|
||||
return fmt.Sprint(strings.Repeat(" ", padWidth), frame)
|
||||
return strings.Repeat(" ", padWidth) + frame
|
||||
}
|
||||
default:
|
||||
sf.position = func(frame string, padWidth int) string {
|
||||
return fmt.Sprint(strings.Repeat(" ", padWidth/2), frame, strings.Repeat(" ", padWidth/2+padWidth%2))
|
||||
return strings.Repeat(" ", padWidth/2) + frame + strings.Repeat(" ", padWidth/2+padWidth%2)
|
||||
}
|
||||
}
|
||||
return sf
|
||||
|
Reference in New Issue
Block a user