cleanup and rename provider to plugin
This commit is contained in:
@@ -98,7 +98,7 @@ from SYS.result_table import Table
|
||||
|
||||
from SYS.worker import WorkerManagerRegistry, WorkerStages, WorkerOutputMirror, WorkerStageSession
|
||||
from SYS.pipeline import PipelineExecutor
|
||||
from ProviderCore.registry import plugin_inline_query_choices
|
||||
from PluginCore.registry import plugin_inline_query_choices
|
||||
|
||||
|
||||
|
||||
@@ -505,7 +505,7 @@ class CmdletIntrospection:
|
||||
if normalized_arg == "plugin":
|
||||
canonical_cmd = (cmd_name or "").replace("_", "-").lower()
|
||||
try:
|
||||
from ProviderCore.registry import (
|
||||
from PluginCore.registry import (
|
||||
list_configured_plugin_names_with_capability,
|
||||
list_plugin_names_for_cmdlet,
|
||||
)
|
||||
@@ -546,7 +546,7 @@ class CmdletIntrospection:
|
||||
|
||||
if normalized_arg == "scrape":
|
||||
try:
|
||||
from plugins.metadata_provider import list_metadata_plugins
|
||||
from plugins.metadata_plugin import list_metadata_plugins
|
||||
|
||||
metadata_plugins = list_metadata_plugins(config) or {}
|
||||
if metadata_plugins:
|
||||
@@ -765,7 +765,7 @@ class CmdletCompleter(Completer):
|
||||
return []
|
||||
|
||||
try:
|
||||
from ProviderCore.registry import get_plugin_class
|
||||
from PluginCore.registry import get_plugin_class
|
||||
except Exception:
|
||||
return []
|
||||
|
||||
|
||||
Reference in New Issue
Block a user