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

Function main

assets/task_showcase/app.py:246–260  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

244
245
246def main():
247 parser = argparse.ArgumentParser()
248 parser.add_argument("--host", default="0.0.0.0")
249 parser.add_argument("--port", type=int, default=5005)
250 parser.add_argument(
251 "--tasks-dir",
252 type=Path,
253 default=None,
254 help="Directory containing <short_id>/task.json and report.json folders.",
255 )
256 parser.add_argument("--debug", action="store_true")
257 args = parser.parse_args()
258 global TASKS_DIR
259 TASKS_DIR = _resolve_tasks_dir(args.tasks_dir)
260 app.run(host=args.host, port=args.port, debug=args.debug)
261
262
263if __name__ == "__main__":

Callers 1

app.pyFile · 0.70

Calls 2

_resolve_tasks_dirFunction · 0.85
runMethod · 0.45

Tested by

no test coverage detected