(args: argparse.Namespace)
| 170 | |
| 171 | |
| 172 | def _cmd_info(args: argparse.Namespace) -> int: |
| 173 | session_path = _resolve_path(args.session_file, args.workspace_dir) |
| 174 | if not session_path.exists(): |
| 175 | print(f"LB_INFO_MISSING file={session_path}") |
| 176 | return 1 |
| 177 | session = json.loads(session_path.read_text(encoding="utf-8")) |
| 178 | session["alive"] = _pid_alive(int(session.get("pid", 0))) |
| 179 | print(json.dumps(session, indent=2)) |
| 180 | return 0 |
| 181 | |
| 182 | |
| 183 | def _terminate_pid(pid: int, kill_timeout: float) -> str: |
nothing calls this directly
no test coverage detected