Lines Matching full:plugins
17 Plugins are registered in a Registry. The plugin object is typically a function,
20 Plugins may be loaded in a variety of ways:
22 - Listed in a plugins file in the file system (e.g. as "name module target").
26 This functionality can be used to create plugins for command line tools,
28 for its plugins.
92 source: path to the plugins file that declared this plugin, if any
193 """Manages a set of plugins from Python modules or plugins files."""
198 """Creates a new, empty plugins registry.
202 be registered. Must raise plugins.Error is the plugin is invalid.
206 self._sources: Set[Path] = set() # Paths to plugins files
310 # Prohibit functions not from a plugins file from overriding others.
329 """Registers plugins from a Pigweed config.
333 plugins = config.get('pw', {}).get('pw_cli', {}).get('plugins', {})
334 for name, location in plugins.items():
352 """Registers plugins from a plugins file.
396 """Finds and registers plugins from plugins files in a directory.
400 file_name: The name of plugins files to look for.
409 "Skipping plugins file %s because it's outside of %s",
415 _LOG.debug('Found plugins file %s', path)
419 """Returns a help string for the registered plugins."""
429 return f'supported plugins:\n{help_items}'
431 def detailed_help(self, plugins: Iterable[str] = ()) -> Iterator[str]:
433 if not plugins:
434 plugins = list(self._registry)
442 plugins = sorted(plugins)
443 for plugin in plugins:
447 for line in self[plugin].details(full=len(plugins) == 1):
454 yield 'Plugins files:'
509 This can be used to collect plugins registered with a decorator from a