Add msg_dev function for dev mode messaging

Introduces a new msg_dev function in core.func to standardize development/debugging messages. Updates build.func to use msg_dev for clearer dev mode output, replacing previous msg_custom and msg_info usages for MOTD/SSH setup and container debugging steps.
This commit is contained in:
CanbiZ
2025-11-17 14:22:22 +01:00
parent ee5dc898f9
commit 82439d30cd
2 changed files with 20 additions and 7 deletions

View File

@@ -633,7 +633,19 @@ msg_debug() {
}
# ------------------------------------------------------------------------------
# fatal()
# msg_dev()
#
# - Display development mode messages with 🔧 icon
# - Only shown when dev_mode is active
# - Useful for debugging and development-specific output
# - Format: [DEV] message with distinct formatting
# - Usage: msg_dev "Container ready for debugging"
# ------------------------------------------------------------------------------
msg_dev() {
if [[ -n "${dev_mode:-}" ]]; then
echo -e "${SEARCH}${BOLD}${DGN}🔧 [DEV]${CL} $*"
fi
}
#
# - Displays error message and immediately terminates script
# - Sends SIGINT to current process to trigger error handler