Registry / cli / vbauerster-mpb-v7

vbauerster-mpb-v7

JSON →
library7.5.3gogounverified

A library for rendering progress bars in terminal applications.

go get github.com/vbauerster/mpb/v7
INSTALL
IMPORT
SIG · VBAUERSTER-MPB-V7
V
vbauerster-mpb-v7
cligov7.5.3
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

mpb
github.com/vbauerster/mpb/v7

Creates and updates a simple progress bar.

package main import ( "time" "github.com/vbauerster/mpb/v7" "github.com/vbauerster/mpb/v7/decor" ) func main() { p := mpb.New() bar := p.AddBar(100, mpb.BarStyle(), mpb.PrependDecorators(decor.Name("loading"))) for i := 0; i < 100; i++ { time.Sleep(10 * time.Millisecond) bar.Increment() } p.Wait() }
Debug
Known issues
breakingmpb v7 has breaking changes from v5/v6, including API changes for decorators and bar options.
fix
Update imports to /v7 and refer to the v7 documentation for new API usage.
affects: >=7.0.0
Upgrade
Version history
7.5.3latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
30 hits · last 30 days
node
26
Resources
vbauerster-mpb-v7 — go get vbauerster-mpb-v7 · libregistry