Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Dieterbe/libui-sh
a shell library providing useful UI functions
https://github.com/Dieterbe/libui-sh
Last synced: 13 days ago
JSON representation
a shell library providing useful UI functions
- Host: GitHub
- URL: https://github.com/Dieterbe/libui-sh
- Owner: Dieterbe
- Created: 2010-03-10T20:52:27.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2021-01-27T06:48:47.000Z (almost 4 years ago)
- Last Synced: 2024-10-28T13:05:32.831Z (16 days ago)
- Language: Shell
- Homepage:
- Size: 202 KB
- Stars: 71
- Watchers: 4
- Forks: 12
- Open Issues: 3
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
== A library providing UI functions for shell scripts ==
When you write bash/shell scripts, do you write your own error/debug/logging/abort functions?
Logic that requests the user to input a boolean, string, password, selection out of a list,
date/time, integer, ... ?Libui-sh is written to take care of all that.
libui-sh is meant to a be a general-purpose UI abstraction library for shell scripts.
Low impact, easy to use, but still flexible.
cli by default, can optionally use ncurses dialogs as well.To start using it, you only need to source it and you can start calling its functions.
To reconfigure it (i.e. to change UI type, debug settings, logfile location),
just run the command libui_sh_initThe library is not strictly a UI library, it also contains a few useful functions like
check_is_in (check if an element can be found in a set - usually an array) and
seteditor (interactive $EDITOR selection)It also comes with a shell color definitions file, just source libui-colors.sh to use them.
Dependencies:
- bash (for cli interface)
- optionally: dialog (for ncurses interface)