Skip to content

WonderboyFromMars/swift-pb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

swift-pb

Swift-Pb is a port of the excellent rust pb crate! I started this as an experimental project to learn the swift programming language and use it outside of IOS or MacOS.

Example usage

var pb = ProgressBar(total: 100_000)
pb.showTick = true
pb.format("╢▌▌░╟")
pb.showTimeLeft = false
pb.showPercent = false
pb.showSpeed = true
pb.units = .Bytes

for _ in 0..<100_000 {
    usleep(100)
    let _ = pb.add(1)
}

About

Small console progressbar

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages