Files
bash-tui-toolkit/README.md
2023-02-17 17:07:43 +01:00

5.2 KiB

bash-tui-toolkit

pre-commit CircleCI Renovate

Toolkit to create simple Terminal UIs using plain bash builtins

Goals

  • provide a simple and clear default set of elements to use creating an interactive terminal UI
  • be clean and minimalistic
  • zero dependencies to be installed
  • parts can be used separately

Install

  1. Download the bundle (entire lib) or single compoennt from releases
  2. Source the bundle in your script or embed

Documentation

For a list of available modules and their documentation please check the docs/modules folder

Tested with

Since there are some weird combinations/side effects based on the platform you might use there are different side effects that might occur

If you use it on a different platform successfully please create a PR to add a item here :)

  • Ubuntu 20 (Bash 5)
    • Tilix
    • xterm
  • Ubuntu 22 (Bash 5)
    • Tilix
    • xterm
  • Alpine 3 (Bash 5)
    • xterm
  • MacOS (Bash 3)
    • iTerm2
  • Windows 10 (Bash 4)
    • Git Bash
    • Windows Terminal

Development

Requirements

  • bash 3+
  • docker 19+
  • GNU make

Generate documentation

To update the module documentation you just need to run

make generate-docs

This builds the documentation inside a docker container and updates the repo locally. Afterwards just commit the docs with your code changes

Build

To combine the script(s) you just need to run

make build

The combined artifacts can be found in dist/

Alternatives