This is a simple bash plugin which provides a consistent method for drawing lines on the console.
This was first implemented in our CI/CD Toolbox tools, but we externalised it so it could be released and used independently.
export screen_width=97
# shellcheck disable=SC1091
source ../src/draw-lines.sh
draw_line
align_right "Wolf Software"
align_right "Wolf Software" 4
align_left "Wolf Software"
align_left "Wolf Software" 4
align_center "Wolf Software"
─────────────────────────────────────────────────────────────────────────────────────────────────
──────────────────────────────────────────────────────────────────────────────── Wolf Software ──
────────────────────────────────────────────────────────────────────────────── Wolf Software ────
── Wolf Software ────────────────────────────────────────────────────────────────────────────────
──── Wolf Software ──────────────────────────────────────────────────────────────────────────────
───────────────────────────────────────── Wolf Software ─────────────────────────────────────────