MCPcopy Create free account
hub / github.com/python-cmd2/cmd2 / Cmd2EventBased

Class Cmd2EventBased

examples/event_loops.py:12–18  ·  view source on GitHub ↗

Basic example of how to run cmd2 without it controlling the main loop.

Source from the content-addressed store, hash-verified

10
11
12class Cmd2EventBased(cmd2.Cmd):
13 """Basic example of how to run cmd2 without it controlling the main loop."""
14
15 def __init__(self) -> None:
16 super().__init__()
17
18 # ... your class code here ...
19
20
21if __name__ == "__main__":

Callers 1

event_loops.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…