Basic example of how to run cmd2 without it controlling the main loop.
| 10 | |
| 11 | |
| 12 | class 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 | |
| 21 | if __name__ == "__main__": |
no outgoing calls
no test coverage detected
searching dependent graphs…