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

Function create_status_display

ci/util/process_status_display.py:377–397  ·  view source on GitHub ↗

Factory function to create best available display.

(
    group: "RunningProcessGroup", display_type: str = "auto"
)

Source from the content-addressed store, hash-verified

375
376
377def create_status_display(
378 group: "RunningProcessGroup", display_type: str = "auto"
379) -> ProcessStatusDisplay:
380 """Factory function to create best available display."""
381
382 if display_type == "auto":
383 config = get_display_format()
384 display_type = config.format_type
385
386 if display_type == "rich":
387 try:
388 return RichStatusDisplay(group)
389 except KeyboardInterrupt as ki:
390 handle_keyboard_interrupt(ki)
391 raise
392 except Exception as e:
393 logger.warning(f"Rich display creation failed, falling back to ASCII: {e}")
394 return ASCIIStatusDisplay(group)
395
396 # Default to ASCII
397 return ASCIIStatusDisplay(group)
398
399
400def display_process_status(

Callers 1

display_process_statusFunction · 0.85

Calls 5

get_display_formatFunction · 0.85
RichStatusDisplayClass · 0.85
ASCIIStatusDisplayClass · 0.85
warningMethod · 0.80

Tested by

no test coverage detected