Files
bash-tui-toolkit/src/user_feedback.sh
Timo Reymann 762ae97a36 feat: Add first modules
This adds the first modules blocks from the initial proof of concept, with basic docs.
Currently missing is bundling and usage instructions
2023-02-15 00:19:14 +01:00

16 lines
446 B
Bash

#!/bin/bash
# @name User-Feedback
# @brief Provides useful colored outputs for user feedback on actions
# @description Display error message in stderr, prefixed by check emoji
# @arg $1 string Error message to display
show_error() {
echo -e "\e[91;1m\u2718 $1" >&2
}
# @description Display success message in stderr, prefixed by cross emoji
# @arg $1 string Success message to display
show_success() {
echo -e "\e[92;1m\u2714 $1" >&2
}