Print cache hit message in green with appropriate formatting.
(self, message: str)
| 73 | self._fallback_print(msg, "ℹ️ ") |
| 74 | |
| 75 | def print_cache_hit(self, message: str) -> None: |
| 76 | """Print cache hit message in green with appropriate formatting.""" |
| 77 | elapsed = get_elapsed_str() |
| 78 | if self.console and self._Text is not None: |
| 79 | # Use bright green with a checkmark for cache hits |
| 80 | text = self._Text() |
| 81 | text.append(f"{elapsed} ", style="bright_green") |
| 82 | text.append("✓ ", style="bright_green bold") |
| 83 | text.append(message, style="green") |
| 84 | # Disable word wrapping to keep the message on one line |
| 85 | self.console.print(text, soft_wrap=True) |
| 86 | else: |
| 87 | self._fallback_print(f"{elapsed} {message}", "✓ ") |
| 88 | |
| 89 | def print_cache_miss(self, message: str) -> None: |
| 90 | """Print cache miss/invalidation message in yellow with warning formatting.""" |
no test coverage detected