(current: int, total: int, unit: str, message: str)
| 527 | |
| 528 | |
| 529 | def progress(current: int, total: int, unit: str, message: str) -> None: |
| 530 | print( |
| 531 | "JCODE_PROGRESS " |
| 532 | + json.dumps( |
| 533 | { |
| 534 | "current": current, |
| 535 | "total": total, |
| 536 | "unit": unit, |
| 537 | "message": message, |
| 538 | }, |
| 539 | separators=(",", ":"), |
| 540 | ), |
| 541 | flush=True, |
| 542 | ) |
| 543 | |
| 544 | |
| 545 | def start_server(args: argparse.Namespace, socket_path: Path) -> subprocess.Popen[str]: |
no outgoing calls
no test coverage detected