MCPcopy Index your code
hub / github.com/HKUDS/DeepCode / display_requirement_summary

Method display_requirement_summary

cli/cli_interface.py:905–926  ·  view source on GitHub ↗

Display generated requirement document (NEW: matching UI version)

(self, summary: str)

Source from the content-addressed store, hash-verified

903 return {}
904
905 def display_requirement_summary(self, summary: str):
906 """Display generated requirement document (NEW: matching UI version)"""
907 self.print_separator("═", 79, Colors.GREEN)
908 print(
909 f"\n{Colors.BOLD}{Colors.GREEN}📄 Generated Requirement Document{Colors.ENDC}\n"
910 )
911 self.print_separator("─", 79, Colors.GREEN)
912
913 print(f"{Colors.CYAN}{summary}{Colors.ENDC}")
914
915 self.print_separator("═", 79, Colors.GREEN)
916
917 # Ask if user wants to proceed with implementation
918 proceed = (
919 input(
920 f"\n{Colors.BOLD}{Colors.YELLOW}Would you like to proceed with code implementation based on these requirements? (y/n):{Colors.ENDC} "
921 )
922 .strip()
923 .lower()
924 )
925
926 return proceed == "y"
927
928 def ask_continue(self) -> bool:
929 """Ask if user wants to continue with another paper"""

Callers 1

Calls 1

print_separatorMethod · 0.95

Tested by

no test coverage detected