Method
hook
(self: cmd2.Cmd, data: plugin.CommandFinalizationData)
Source from the content-addressed store, hash-verified
| 599 | self.register_cmdfinalization_hook(self.hook) |
| 600 | |
| 601 | def hook(self: cmd2.Cmd, data: plugin.CommandFinalizationData) -> plugin.CommandFinalizationData: |
| 602 | if self.in_script(): |
| 603 | self.poutput("WE ARE IN SCRIPT") |
| 604 | return data |
| 605 | |
| 606 | hook_app = HookApp() |
| 607 | test_dir = os.path.dirname(request.module.__file__) |
Callers
nothing calls this directly
Tested by
no test coverage detected