From a4fa98ff5aa021fdb6146bd394c24457e6d5fce4 Mon Sep 17 00:00:00 2001 From: sdohuajia <63113882+sdohuajia@users.noreply.github.com> Date: Wed, 9 Oct 2024 19:48:15 +0800 Subject: [PATCH] Update nexus.sh --- nexus.sh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/nexus.sh b/nexus.sh index 79cfdce..c4ce21a 100644 --- a/nexus.sh +++ b/nexus.sh @@ -1,5 +1,25 @@ #!/bin/bash +# 自定义状态显示函数 +show_status() { + local message="$1" + local status="$2" + case $status in + "error") + echo -e "${RED}${BOLD}🚫 出错: ${message}${NORMAL}" + ;; + "progress") + echo -e "${YELLOW}${BOLD}🔄 进行中: ${message}${NORMAL}" + ;; + "success") + echo -e "${GREEN}${BOLD}✅ 成功: ${message}${NORMAL}" + ;; + *) + echo -e "${PINK}${BOLD}${message}${NORMAL}" + ;; + esac +} + # 主菜单函数 function main_menu() { while true; do