forked from platypush/platypush
Updated generate_missing_docs
to use the new manifest API.
This commit is contained in:
parent
980af16984
commit
7889b2f1db
1 changed files with 3 additions and 3 deletions
|
@ -4,7 +4,7 @@ from typing import Iterable, Optional
|
||||||
from platypush.backend import Backend
|
from platypush.backend import Backend
|
||||||
from platypush.context import get_plugin
|
from platypush.context import get_plugin
|
||||||
from platypush.plugins import Plugin
|
from platypush.plugins import Plugin
|
||||||
from platypush.utils.manifest import get_manifests
|
from platypush.utils.manifest import Manifests
|
||||||
|
|
||||||
|
|
||||||
def _get_inspect_plugin():
|
def _get_inspect_plugin():
|
||||||
|
@ -14,11 +14,11 @@ def _get_inspect_plugin():
|
||||||
|
|
||||||
|
|
||||||
def get_all_plugins():
|
def get_all_plugins():
|
||||||
return sorted([mf.component_name for mf in get_manifests(Plugin)])
|
return sorted([mf.component_name for mf in Manifests.by_base_class(Plugin)])
|
||||||
|
|
||||||
|
|
||||||
def get_all_backends():
|
def get_all_backends():
|
||||||
return sorted([mf.component_name for mf in get_manifests(Backend)])
|
return sorted([mf.component_name for mf in Manifests.by_base_class(Backend)])
|
||||||
|
|
||||||
|
|
||||||
def get_all_events():
|
def get_all_events():
|
||||||
|
|
Loading…
Reference in a new issue