diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-01-28 14:39:31 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-28 14:39:31 -0500 |
commit | 2ee034c1e6ddd9918b97ddea2fd3e6388ec8f60b (patch) | |
tree | 77d46e8e793088ae9dbd0c74999d31e26951a629 /vendor/github.com/vbauerster/mpb/v5/bar_option.go | |
parent | a4c255a939cf340978efd9cb070951029237c8cf (diff) | |
parent | 75c3b33899954e7a0925426b38fd1084d521c3a0 (diff) | |
download | podman-2ee034c1e6ddd9918b97ddea2fd3e6388ec8f60b.tar.gz podman-2ee034c1e6ddd9918b97ddea2fd3e6388ec8f60b.tar.bz2 podman-2ee034c1e6ddd9918b97ddea2fd3e6388ec8f60b.zip |
Merge pull request #9140 from containers/dependabot/go_modules/github.com/containers/image/v5-5.10.0
Bump github.com/containers/image/v5 from 5.9.0 to 5.10.0
Diffstat (limited to 'vendor/github.com/vbauerster/mpb/v5/bar_option.go')
-rw-r--r-- | vendor/github.com/vbauerster/mpb/v5/bar_option.go | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/vendor/github.com/vbauerster/mpb/v5/bar_option.go b/vendor/github.com/vbauerster/mpb/v5/bar_option.go index 31b7939b0..e7d2e41f9 100644 --- a/vendor/github.com/vbauerster/mpb/v5/bar_option.go +++ b/vendor/github.com/vbauerster/mpb/v5/bar_option.go @@ -123,13 +123,20 @@ func makeExtFunc(filler BarFiller) extFunc { } } -// TrimSpace trims bar's edge spaces. -func TrimSpace() BarOption { +// BarFillerTrim bar filler is rendered with leading and trailing space +// like ' [===] ' by default. With this option leading and trailing +// space will be removed. +func BarFillerTrim() BarOption { return func(s *bState) { s.trimSpace = true } } +// TrimSpace is an alias to BarFillerTrim. +func TrimSpace() BarOption { + return BarFillerTrim() +} + // BarStyle overrides mpb.DefaultBarStyle which is "[=>-]<+". // It's ok to pass string containing just 5 runes, for example "╢▌▌░╟", // if you don't need to override '<' (reverse tip) and '+' (refill rune). |