bug fix ...

pull/17/head
Steve Nyemba 4 weeks ago
parent a347c0b624
commit 1337a99b18

@ -202,7 +202,7 @@ def load(**_args):
@cli.command(name='plugins')
def plugin_manager (manifest:Annotated[str,typer.Argument(help="path to manifest file")],
show:bool=typer.Option(default=False,help="list plugins loaded"),
add: Annotated[Optional[bool],typer.Option("--register/--unregister",help="add/remove a plugin to manifest use with --pointer option")] = None,
add: Annotated[Optional[bool],typer.Option("--register/--unregister",help="add/remove a plugin to manifest use with --pointer option")] = None,
pointer:str=typer.Option(default=None,help="pointer is structured as 'filename.function'")
) :
"""
@ -219,7 +219,7 @@ def plugin_manager (manifest:Annotated[str,typer.Argument(help="path to manifest
_msg = f"""{FAILED} no operation was specified, please use --help option"""
# if 'plugins' in _config :
_plugins = _config['plugins'] if 'plugins' in _config else {}
if show :
if not _plugins :
_msg = f"""{FAILED} no plugins are loaded\n\t{manifest}"""
@ -228,7 +228,7 @@ def plugin_manager (manifest:Annotated[str,typer.Argument(help="path to manifest
_plugConf = _config['plugins']
for _name in _plugConf :
_log = {"files":_name,"loaded":len(_plugConf[_name]),"logs":json.dumps(_plugConf[_name])}
_log = {"files":_name,"loaded":len(_plugConf[_name]),"functions":json.dumps(_plugConf[_name])}
_data.append(_log)
_data= pd.DataFrame(_data)

Loading…
Cancel
Save