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

Method on_unregister

cmd2/command_set.py:83–87  ·  view source on GitHub ↗

First step to unregistering a CommandSet, called by ``cmd2.Cmd``. Subclasses can override this to perform any cleanup steps which require their commands being registered in the CLI.

(self)

Source from the content-addressed store, hash-verified

81 """
82
83 def on_unregister(self) -> None:
84 """First step to unregistering a CommandSet, called by ``cmd2.Cmd``.
85
86 Subclasses can override this to perform any cleanup steps which require their commands being registered in the CLI.
87 """
88
89 def on_unregistered(self) -> None:
90 """2nd step to unregistering, called by ``cmd2.Cmd`` after a CommandSet is unregistered and all its commands removed.

Callers 2

register_command_setMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected