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])
| 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 |
no test coverage detected