JamieCruwys / bash-menu-generator

A simple bash script that will generate menus

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

bash-menu-generator

A simple bash script that will generate menus.

Examples

alt Bash Menu Options Example

alt Bash Menu Instructions Example

Usage

generateDialog

Parameter 1: "options" to use [1] or "instructions" for 1.
Parameter 2: Title for the menu
Parameter 3: Array of options or instructions to show

e.g. generateDialog "options" "Choose an option" "${options[@]}"

Configuration

  • symbol - Which character to be used to create the menu
  • paddingSymbol - Character to space and center the text
  • lineLength - How wide the menu should be
  • charsToOption - How much padding you want from the sides of the menu
  • charsToName - How much padding you want around the text

About

A simple bash script that will generate menus

License:MIT License


Languages

Language:Shell 100.0%