Skip to content

Commit

Permalink
Add progress demo
Browse files Browse the repository at this point in the history
  • Loading branch information
tomocafe committed Sep 1, 2023
1 parent 7fd59f2 commit 6e980bc
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions demo/progress.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/bin/bash

source "$BB_ROOT/bash-boost.sh"
bb_load cli/progress

for i in {0..100..5}; do
sleep 0.1s
bb_progressbar $i "Initializing"
done
echo

for i in {0..100}; do
if [[ $i -gt 60 && $i -lt 70 ]]; then
sleep 0.5s
bb_progressbar $i "Thinking really hard"
else
sleep 0.1s
bb_progressbar $i "Reticulating splines"
fi
done
echo "Done."

0 comments on commit 6e980bc

Please sign in to comment.