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

Method __init__

tests/test_cmd2.py:1143–1146  ·  view source on GitHub ↗
(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

1141
1142class HookFailureApp(cmd2.Cmd):
1143 def __init__(self, *args, **kwargs) -> None:
1144 super().__init__(*args, **kwargs)
1145 # register a postparsing hook method
1146 self.register_postparsing_hook(self.postparsing_precmd)
1147
1148 def postparsing_precmd(self, data: cmd2.plugin.PostparsingData) -> cmd2.plugin.PostparsingData:
1149 """Simulate precmd hook failure."""

Callers

nothing calls this directly

Calls 2

__init__Method · 0.45

Tested by

no test coverage detected