MCPcopy Create free account
hub / github.com/adny-code/fastgrind / export_json_command

Function export_json_command

tools/fastgrind.py:2886–2889  ·  view source on GitHub ↗
(engine: FastgrindQueryEngine, input_path: Path, output: str | None)

Source from the content-addressed store, hash-verified

2884
2885
2886def 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
2892def export_html_command(engine: FastgrindQueryEngine, input_path: Path, output: str | None) -> None:

Callers 1

mainFunction · 0.85

Calls 1

export_jsonMethod · 0.80

Tested by

no test coverage detected