MCPcopy
hub / github.com/Textualize/textual / run_auto_pilot

Method run_auto_pilot

src/textual/app.py:2264–2272  ·  view source on GitHub ↗
(
                    auto_pilot: AutopilotCallbackType, pilot: Pilot
                )

Source from the content-addressed store, hash-verified

2262 if auto_pilot is not None:
2263
2264 async def run_auto_pilot(
2265 auto_pilot: AutopilotCallbackType, pilot: Pilot
2266 ) -> None:
2267 with self._context():
2268 try:
2269 await auto_pilot(pilot)
2270 except Exception:
2271 app.exit()
2272 raise
2273
2274 pilot = Pilot(app)
2275 auto_pilot_task = create_task(

Callers

nothing calls this directly

Calls 3

_contextMethod · 0.95
auto_pilotFunction · 0.85
exitMethod · 0.45

Tested by

no test coverage detected