Function
export_json_command
(engine: FastgrindQueryEngine, input_path: Path, output: str | None)
Source from the content-addressed store, hash-verified
| 2884 | |
| 2885 | |
| 2886 | def export_json_command(engine: FastgrindQueryEngine, input_path: Path, output: str | None) -> None: |
| 2887 | output_path = Path(output) if output else input_path.with_suffix(".json") |
| 2888 | engine.export_json(output_path) |
| 2889 | print(f"JSON written: {output_path}") |
| 2890 | |
| 2891 | |
| 2892 | def export_html_command(engine: FastgrindQueryEngine, input_path: Path, output: str | None) -> None: |
Tested by
no test coverage detected