Skip to content

A bash script that allows you to draw multiple different types of lines on the console.

License

Notifications You must be signed in to change notification settings

DevelopersToolbox/draw-lines

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DevelopersToolbox logo
Github Build Status License Created
Release Released Commits since release

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 tools, but we externalised it so it could be released and used independently.

Example

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 ─────────────────────────────────────────

About

A bash script that allows you to draw multiple different types of lines on the console.

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Sponsor this project

  •  
  •  

Packages

No packages published

Languages