Compile FastLED examples.
(
arguments: dict[str, Any], project_root: Path
)
| 1421 | |
| 1422 | |
| 1423 | async def compile_examples( |
| 1424 | arguments: dict[str, Any], project_root: Path |
| 1425 | ) -> CallToolResult: |
| 1426 | """Compile FastLED examples.""" |
| 1427 | platform = arguments.get("platform", "uno") |
| 1428 | examples = arguments.get("examples", ["Blink"]) |
| 1429 | interactive = arguments.get("interactive", False) |
| 1430 | |
| 1431 | cmd = ["uv", "run", "-m", "ci.ci-compile", platform] |
| 1432 | |
| 1433 | if examples: |
| 1434 | cmd.extend(["--examples"] + examples) |
| 1435 | |
| 1436 | if not interactive: |
| 1437 | cmd.append("--no-interactive") |
| 1438 | |
| 1439 | result = await run_command(cmd, project_root) |
| 1440 | return CallToolResult(content=[TextContent(type="text", text=result)]) |
| 1441 | |
| 1442 | |
| 1443 | async def code_fingerprint( |
no test coverage detected