20 lines
556 B
Python
20 lines
556 B
Python
"""Runtime diagnostics CLI."""
|
|
|
|
from __future__ import annotations
|
|
|
|
import argparse
|
|
import json
|
|
|
|
from pyro_mcp.runtime import DEFAULT_PLATFORM, doctor_report
|
|
|
|
|
|
def _build_parser() -> argparse.ArgumentParser:
|
|
parser = argparse.ArgumentParser(description="Inspect bundled runtime health for pyro-mcp.")
|
|
parser.add_argument("--platform", default=DEFAULT_PLATFORM)
|
|
return parser
|
|
|
|
|
|
def main() -> None:
|
|
args = _build_parser().parse_args()
|
|
report = doctor_report(platform=args.platform)
|
|
print(json.dumps(report, indent=2, sort_keys=True))
|