Progress bar
Simple & sexy progress bar for
bash
, give it a duration and it will do the rest.
Usage
-
Copy to your code or source:
source ./progress-bar.sh
-
Call with a
duration
:progress-bar 5
Why?
- I needed one ;
- What I found was too ugly and too complicated ;
- I wanted a good UX ;
- Check-out similar projects' source code and you'll understand.
Who use it?
Test
Requirements: bats
.
$ bats ./tests.bats