Print status message with appropriate styling
(self, message: str, status_type: str = "info")
| 162 | print(f"{color}{char * length}{Colors.ENDC}") |
| 163 | |
| 164 | def print_status(self, message: str, status_type: str = "info"): |
| 165 | """Print status message with appropriate styling""" |
| 166 | status_styles = { |
| 167 | "success": f"{Colors.OKGREEN}✅", |
| 168 | "error": f"{Colors.FAIL}❌", |
| 169 | "warning": f"{Colors.WARNING}⚠️ ", |
| 170 | "info": f"{Colors.OKBLUE}ℹ️ ", |
| 171 | "processing": f"{Colors.YELLOW}⏳", |
| 172 | "upload": f"{Colors.PURPLE}📁", |
| 173 | "download": f"{Colors.CYAN}📥", |
| 174 | "analysis": f"{Colors.MAGENTA}🔍", |
| 175 | "implementation": f"{Colors.GREEN}⚙️ ", |
| 176 | "complete": f"{Colors.OKGREEN}🎉", |
| 177 | } |
| 178 | |
| 179 | icon = status_styles.get(status_type, status_styles["info"]) |
| 180 | timestamp = time.strftime("%H:%M:%S") |
| 181 | print( |
| 182 | f"[{Colors.BOLD}{timestamp}{Colors.ENDC}] {icon} {Colors.BOLD}{message}{Colors.ENDC}" |
| 183 | ) |
| 184 | |
| 185 | def create_menu(self): |
| 186 | """Create enhanced interactive menu""" |
no test coverage detected