MCPcopy Create free account
hub / github.com/microsoft/Webwright / _cmd_info

Function _cmd_info

src/webwright/tools/persistent_local_browser.py:172–180  ·  view source on GitHub ↗
(args: argparse.Namespace)

Source from the content-addressed store, hash-verified

170
171
172def _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
183def _terminate_pid(pid: int, kill_timeout: float) -> str:

Callers

nothing calls this directly

Calls 2

_resolve_pathFunction · 0.85
_pid_aliveFunction · 0.85

Tested by

no test coverage detected