MCPcopy
hub / github.com/HKUDS/DeepCode / print_status

Method print_status

cli/cli_interface.py:164–183  ·  view source on GitHub ↗

Print status message with appropriate styling

(self, message: str, status_type: str = "info")

Source from the content-addressed store, hash-verified

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"""

Callers 15

upload_file_guiMethod · 0.95
select_fileMethod · 0.95
_get_manual_file_pathMethod · 0.95
get_url_inputMethod · 0.95
get_chat_inputMethod · 0.95
cleanup_cacheMethod · 0.95
get_question_answersMethod · 0.95
show_historyMethod · 0.95

Calls 1

getMethod · 0.80

Tested by

no test coverage detected