MCPcopy Index your code
hub / github.com/python-cmd2/cmd2 / postloop

Method postloop

cmd2/cmd2.py:2855–2862  ·  view source on GitHub ↗

Ran once when the [cmd2.Cmd.cmdloop][] method is about to return (cmd inherited Hook Method). This method is a stub that does nothing and exists to be overridden by subclasses. See [cmd2.Cmd.register_postloop_hook][] for a more robust way to run hooks after the command loop complet

(self)

Source from the content-addressed store, hash-verified

2853 """
2854
2855 def postloop(self) -> None:
2856 """Ran once when the [cmd2.Cmd.cmdloop][] method is about to return (cmd inherited Hook Method).
2857
2858 This method is a stub that does nothing and exists to be overridden by subclasses.
2859
2860 See [cmd2.Cmd.register_postloop_hook][] for a more robust way to run hooks after the command loop completes.
2861 See [Hooks](../features/hooks.md) for more information.
2862 """
2863
2864 def parseline(self, line: str) -> tuple[str, str, str]:
2865 """Parse the line into a command name and a string containing the arguments.

Callers 2

cmdloopMethod · 0.95
event_loops.pyFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected