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

Method _initialize_plugin_system

cmd2/cmd2.py:5803–5810  ·  view source on GitHub ↗

Initialize the plugin system.

(self)

Source from the content-addressed store, hash-verified

5801 #
5802 ###
5803 def _initialize_plugin_system(self) -> None:
5804 """Initialize the plugin system."""
5805 self._preloop_hooks: list[Callable[[], None]] = []
5806 self._postloop_hooks: list[Callable[[], None]] = []
5807 self._postparsing_hooks: list[Callable[[plugin.PostparsingData], plugin.PostparsingData]] = []
5808 self._precmd_hooks: list[Callable[[plugin.PrecommandData], plugin.PrecommandData]] = []
5809 self._postcmd_hooks: list[Callable[[plugin.PostcommandData], plugin.PostcommandData]] = []
5810 self._cmdfinalization_hooks: list[Callable[[plugin.CommandFinalizationData], plugin.CommandFinalizationData]] = []
5811
5812 @classmethod
5813 def _validate_callable_param_count(cls, func: Callable[..., Any], count: int) -> None:

Callers 1

__init__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected