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

Function create_building_banner

ci/compiler/build_utils.py:68–87  ·  view source on GitHub ↗

Create a building banner for the given example.

(example: str)

Source from the content-addressed store, hash-verified

66
67
68def create_building_banner(example: str) -> str:
69 """Create a building banner for the given example."""
70 banner_text = f"BUILDING {example}"
71 border_char = "="
72 padding = 2
73 text_width = len(banner_text)
74 total_width = text_width + (padding * 2)
75
76 top_border = border_char * (total_width + 4)
77 middle_line = (
78 f"{border_char} {' ' * padding}{banner_text}{' ' * padding} {border_char}"
79 )
80 bottom_border = border_char * (total_width + 4)
81
82 banner = f"{top_border}\n{middle_line}\n{bottom_border}"
83
84 # Apply blue color using ANSI escape codes
85 blue_color = "\033[34m"
86 reset_color = "\033[0m"
87 return f"{blue_color}{banner}{reset_color}"
88
89
90def get_example_error_message(project_root: Path, example: str) -> str:

Callers 2

_init_platformio_buildFunction · 0.90
_build_internalMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected