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

Method _resolve_boards

ci/compiler/argument_parser.py:346–369  ·  view source on GitHub ↗

Resolve board specification to Board objects. Returns empty list if no board specification provided - caller should handle default board selection based on their requirements.

(self, board_spec: Optional[str])

Source from the content-addressed store, hash-verified

344 )
345
346 def _resolve_boards(self, board_spec: Optional[str]) -> list[Board]:
347 """Resolve board specification to Board objects.
348
349 Returns empty list if no board specification provided - caller should
350 handle default board selection based on their requirements.
351 """
352 if not board_spec:
353 # Return empty list - caller will handle default boards
354 return []
355
356 board_names = board_spec.split(",")
357
358 boards: list[Board] = []
359 for name in board_names:
360 try:
361 board = create_board(name, no_project_options=False)
362 boards.append(board)
363 except KeyboardInterrupt as ki:
364 handle_keyboard_interrupt(ki)
365 raise
366 except Exception as e:
367 raise ValueError(f"Failed to create board '{name}': {e}")
368
369 return boards
370
371 def _resolve_examples(
372 self, args: argparse.Namespace, no_filter: bool = False

Callers 1

_build_configMethod · 0.95

Calls 3

create_boardFunction · 0.90
appendMethod · 0.45

Tested by

no test coverage detected