MCPcopy Create free account
hub / github.com/FastLED/FastLED / print_cache_hit

Method print_cache_hit

ci/util/color_output.py:75–87  ·  view source on GitHub ↗

Print cache hit message in green with appropriate formatting.

(self, message: str)

Source from the content-addressed store, hash-verified

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

Callers 1

print_cache_hitFunction · 0.80

Calls 4

_fallback_printMethod · 0.95
get_elapsed_strFunction · 0.85
appendMethod · 0.45
printMethod · 0.45

Tested by

no test coverage detected