add: success function
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user