Main function.
()
| 207 | |
| 208 | |
| 209 | def main(): |
| 210 | """Main function.""" |
| 211 | try: |
| 212 | print_header() |
| 213 | results = clean_cache() |
| 214 | print_summary(results) |
| 215 | return 0 |
| 216 | except KeyboardInterrupt: |
| 217 | print(f"\n{Colors.YELLOW}Cleanup interrupted by user{Colors.NC}") |
| 218 | return 1 |
| 219 | except Exception as e: |
| 220 | print(f"\n{Colors.RED}Error during cleanup: {e}{Colors.NC}") |
| 221 | import traceback |
| 222 | |
| 223 | traceback.print_exc() |
| 224 | return 1 |
| 225 | |
| 226 | |
| 227 | if __name__ == "__main__": |
no test coverage detected