From 794a088be6f266dce0cea6813683a67f96f39b75 Mon Sep 17 00:00:00 2001 From: Asainte Bueno-Villanueva Date: Fri, 6 Feb 2026 04:00:12 -0500 Subject: [PATCH] change downloaded icon v2.3.5 --- modules/help | 44 +++++++++++++++++++++++++++----------------- 1 file changed, 27 insertions(+), 17 deletions(-) diff --git a/modules/help b/modules/help index cc4104f..1b52699 100644 --- a/modules/help +++ b/modules/help @@ -2,29 +2,39 @@ # DYNR Module: Help & Discovery run_help() { - BLUE='\033[38;5;45m'; PURPLE='\033[38;5;127m'; GOLD='\033[38;5;178m'; NC='\033[0m' + BLUE='\033[38;5;45m'; PURPLE='\033[38;5;127m'; GOLD='\033[38;5;178m'; RED='\033[38;5;196m'; NC='\033[0m' + API_URL="https://git.dynastyrevolution.com/api/v1/repos/DYNR/DynastyRevolution-Scripts/contents/modules" clear echo -e "${PURPLE}=================================================${NC}" - echo -e "${BLUE} 🐉 DYNASTY REVOLUTION: ARCHIVE HELP 🐉 ${NC}" + echo -e "${BLUE} 🐉 DYNASTY REVOLUTION: DISCOVERY 🐉 ${NC}" echo -e "${PURPLE}=================================================${NC}" - echo -e "${GOLD}Available Stances (Modules) in the Vault:${NC}" - echo -e " ${BLUE}system-info${NC} - View OS, Kernel, and CPU specs" - echo -e " ${BLUE}network${NC} - Connectivity & DNS diagnostics" - echo -e " ${BLUE}system-pulse${NC} - Real-time hardware monitoring" - echo -e " ${BLUE}log${NC} - View and purge system logs" - echo -e " ${BLUE}rclone-wizard${NC} - Interactive cloud file transfers" - echo -e " ${BLUE}help${NC} - Show this discovery scroll" + + echo -e "${GOLD}📜 ARCHIVE STATUS (Cloud vs Local):${NC}" + # Fetch list from Gitea API + REMOTE_LIST=$(curl -s "$API_URL" | grep -Po '"name":.*?[^\\]",' | sed 's/"name": "//;s/",//') + + if [ -z "$REMOTE_LIST" ]; then + echo -e " ${RED}Failed to reach the Vault.${NC}" + else + for mod in $REMOTE_LIST; do + if [ -f "/opt/dynr/modules/$mod" ]; then + # Show ↓ for locally installed modules + echo -e " ${BLUE}↓ $mod ${NC}(Installed)" + else + # Show ☁️ for modules only on the server + echo -e " ${GOLD}☁️ $mod ${NC}(Remote)" + fi + done + fi + echo -e "${PURPLE}-------------------------------------------------${NC}" - echo -e "${GOLD}Core Commands:${NC}" - echo -e " ${BLUE}dynr list${NC} - Show modules installed locally" - echo -e " ${BLUE}dynr refresh ${NC}- Redownload a specific module" - echo -e " ${BLUE}dynr update${NC} - Update the CLI engine itself" - echo -e " ${BLUE}dynr exit${NC} - Leave the Dynasty" + echo -e "${GOLD}System Commands:${NC}" + echo -e " - update : Update Core Engine" + echo -e " - refresh : Redownload a module" + echo -e " - exit : Close Dynasty" echo -e "${PURPLE}=================================================${NC}" read -p "Press Enter to return to the Dynasty..." < /dev/tty - - # --- The Return Logic --- - dynr + dynr } \ No newline at end of file