From 71c0c4b1c9648be74893c26dbc1d6e9f3b9acec3 Mon Sep 17 00:00:00 2001 From: Steve Nyemba Date: Wed, 12 Feb 2025 13:38:59 -0600 Subject: [PATCH] refactored: plugins -> plugin_ix --- bin/smart-logger | 4 ++-- smart/__init__.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/smart-logger b/bin/smart-logger index a0951fd..d531ef3 100755 --- a/bin/smart-logger +++ b/bin/smart-logger @@ -24,7 +24,7 @@ import shutil from datetime import datetime _cli = typer.Typer() -import plugins +import plugin_ix # iregistry = plugins.Registry(meta.__home__) @@ -158,6 +158,6 @@ def post(_df,_table): if __name__ == '__main__' : os.environ['REGISTRY_FOLDER'] = meta.__home__ # print (os.environ['REGISTRY_FOLDER']) - _cli.add_typer(plugins.cli.appr,name='registry',help='Initialize smart-logger registry for plugins ') + _cli.add_typer(plugin_ix.cli.appr,name='registry',help='Initialize smart-logger registry for plugins ') # del os.environ['REGISTRY_FOLDER'] _cli() diff --git a/smart/__init__.py b/smart/__init__.py index 02db927..5ce8622 100755 --- a/smart/__init__.py +++ b/smart/__init__.py @@ -24,7 +24,7 @@ import shutil from datetime import datetime _cli = typer.Typer() -import plugins +# import plugins @_cli.command(name='log-intruder') def intrusion(path:str='/var/log/auth.log', year:int=datetime.now().year):