paths_cli.plugin_management.CLIPluginLoader¶
-
class
paths_cli.plugin_management.
CLIPluginLoader
(plugin_type, search_path)¶ Abstract object for CLI plugins
The overall approach involves 5 steps, each of which can be overridden:
Find candidate plugins (which must be Python modules)
Load the namespaces associated into a dict (nsdict)
Based on those namespaces, validate that the module is a plugin
Get the associated command name
Return an OPSPlugin object for each plugin
Details on steps 1, 2, and 4 differ based on whether this is a filesystem-based plugin or a namespace-based plugin.
-
__init__
(plugin_type, search_path)¶ Initialize self. See help(type(self)) for accurate signature.
Methods
__init__
(plugin_type, search_path)Initialize self.