Revise wild-setup-cluster to use a single wild-node-setup to replace node-patch-generate and node-up.

This commit is contained in:
2025-10-01 03:52:16 -07:00
parent c7b29e5954
commit ecdb2f2916
9 changed files with 630 additions and 756 deletions

View File

@@ -41,23 +41,39 @@ NC='\033[0m' # No Color
# Print functions for consistent output formatting
print_header() {
echo -e "\n${BLUE} $1 ===${NC}\n"
echo -e "\n${BLUE}=== $1 ===${NC}\n"
}
print_info() {
echo -e "${BLUE} ${NC} $1"
if [ "$1" = "-n" ]; then
echo -ne "${BLUE} ${NC} $2"
else
echo -e "${BLUE} ${NC} $1"
fi
}
print_warning() {
echo -e "${YELLOW}⚠️ ${NC} $1"
if [ "$1" = "-n" ]; then
echo -ne "${YELLOW}⚠️${NC} $2"
else
echo -e "${YELLOW}⚠️${NC} $1"
fi
}
print_success() {
echo -e "${GREEN}${NC} $1"
if [ "$1" = "-n" ]; then
echo -ne "${GREEN}${NC} $2"
else
echo -e "${GREEN}${NC} $1"
fi
}
print_error() {
echo -e "${RED}${NC} $1"
if [ "$1" = "-n" ]; then
echo -ne "${RED}${NC} $2"
else
echo -e "${RED}${NC} $1"
fi
}
# =============================================================================