A (at the moment not so) functional bash library
This repository has been archived on 2024-08-13. You can view files and clone it, but cannot push or open issues or pull requests.
Find a file
ayakael fca165b274
* Changed name for _log function to _msg, added bail() function.
* Created _ansi function library to set terminal properties like
  cursor position and text color.
* Created _if function library, a set of simple if statements.
  Added _if_array_contains, _if_is_integer, _if_is defined,
  if_has_value
2018-01-06 20:30:09 -09:00
lib * Changed name for _log function to _msg, added bail() function. 2018-01-06 20:30:09 -09:00
test * Changed name for _log function to _msg, added bail() function. 2018-01-06 20:30:09 -09:00
CHANGELOG.md Added CHANGELOG.md 2018-01-04 20:44:35 -09:00
LICENSE Initial commit, added log library 2018-01-04 20:27:11 -09:00
README.md * Changed name for _log function to _msg, added bail() function. 2018-01-06 20:30:09 -09:00

bunc

© 2017 Antoine Martin <antoine.martin@protonmail.com>, provided under GNU General Public License v3.0.

A set of bash functions

_msg

Messaging framework for scripts.

_if functions

Set of if functions to make life easier

  • _if_array_contains True if variable exists in array as element
  • _if_is_integer True is variable is integer. Can be multiple
  • _if_is_defined True if variable is defined (Not working)
  • _if_has_value True if variable has non-zero value (Not working)

_ansi

Sets terminal properties such as cursor position and text color using ANSI escape sequences.