add: success function

This commit is contained in:
Jamie Albert
2025-11-13 13:34:14 +00:00
parent a76f8761dd
commit c0c183749c

View File

@@ -13,7 +13,8 @@ set -euo pipefail
# Color definitions using 256-color codes
readonly RED=$'\033[0;38;5;167m'
readonly GREEN=$'\033[0;38;5;108m'
readonly YELLOW=$'\033[1;38;5;214m'
readonly BLUE=$'\033[0;38;5;66m'
readonly YELLOW=$'\033[1;38;5;172m'
readonly NC=$'\033[0m'
dao::error() {
@@ -27,7 +28,13 @@ dao::error() {
dao::info() {
declare info_msg
printf -v info_msg '%s\n' "$*"
echo -ne "${GREEN}[i]${NC}: ${info_msg}"
echo -ne "${BLUE}[i]${NC}: ${info_msg}"
}
dao::success() {
declare success_msg
print -v success_msg '%s\n' "$*"
echo -ne "${GREEN}[s]${NC}: ${success_msg}"
}
dao::warn() {