https://github.com/developerstoolbox/draw-lines
A bash script that allows you to draw multiple different types of lines on the console.
https://github.com/developerstoolbox/draw-lines
bash bash-script lines wolfsoftware
Last synced: 7 months ago
JSON representation
A bash script that allows you to draw multiple different types of lines on the console.
- Host: GitHub
- URL: https://github.com/developerstoolbox/draw-lines
- Owner: DevelopersToolbox
- License: mit
- Created: 2021-11-19T12:47:11.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2025-07-28T05:39:42.000Z (7 months ago)
- Last Synced: 2025-07-28T07:28:49.464Z (7 months ago)
- Topics: bash, bash-script, lines, wolfsoftware
- Language: Shell
- Homepage:
- Size: 163 KB
- Stars: 2
- Watchers: 0
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Contributing: .github/CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE.md
- Code of conduct: .github/CODE_OF_CONDUCT.md
- Citation: CITATION.cff
- Codeowners: .github/CODEOWNERS
- Security: .github/SECURITY.md
Awesome Lists containing this project
README
## Overview
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](https://github.com/CICDToolbox) tools, but we externalised it so it could
be released and used independently.
## Example
```sh
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"
```
## Example Output
```
─────────────────────────────────────────────────────────────────────────────────────────────────
──────────────────────────────────────────────────────────────────────────────── Wolf Software ──
────────────────────────────────────────────────────────────────────────────── Wolf Software ────
── Wolf Software ────────────────────────────────────────────────────────────────────────────────
──── Wolf Software ──────────────────────────────────────────────────────────────────────────────
───────────────────────────────────────── Wolf Software ─────────────────────────────────────────
```