Revise wild-setup-cluster to use a single wild-node-setup to replace node-patch-generate and node-up.
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
# =============================================================================
|
||||
|
||||
Reference in New Issue
Block a user