4coder/build_new/helpers/print-routines.sh

38 lines
581 B
Bash
Raw Permalink Normal View History

2025-07-06 19:44:54 +00:00
#!/bin/bash
# Colors & Styles for output
RED='\033[0;31m'
GREEN='\033[0;32m'
BLUE='\033[0;34m'
BOLD='\033[1m'
NC='\033[0m' # No Color
print_success() {
printf "%b✓%b %s\n" "$GREEN" "$NC" "$1"
}
print_info() {
printf "%b%b%b %s\n" "$BLUE" "$BOLD" "$NC" "$1"
}
print_step() {
printf "%b===%b%b %s %b%b===%b\n" "$BLUE" "$NC" "$BOLD" "$1" "$NC" "$BLUE" "$NC"
}
print_warning() {
printf "%b⚠%b %s\n" "$YELLOW" "$NC" "$1"
}
print_error() {
printf "%b⚠%b %s\n" "$RED" "$NC" "$1"
}
pushdir() {
pushd $1 > /dev/null
}
popdir() {
popd > /dev/null
}