From f2f1ddb968e7dcbbf996787c88ef1b5635585aed Mon Sep 17 00:00:00 2001 From: Marcel Schwarz Date: Fri, 6 Mar 2020 03:05:30 +0100 Subject: [PATCH] skip run call for modules with just one method --- lnxtools.sh | 2 +- main.py | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lnxtools.sh b/lnxtools.sh index a94b950..77ef64b 100755 --- a/lnxtools.sh +++ b/lnxtools.sh @@ -10,7 +10,7 @@ then pip3 install setuptools wheel regex cd $DIR pip3 install -r requirements.txt - python3 main.py helloworld run + python3 main.py helloworld else cd $DIR python3 main.py "$@" diff --git a/main.py b/main.py index 5c5f966..f1ea7ec 100644 --- a/main.py +++ b/main.py @@ -7,11 +7,11 @@ from modules.systemupdate.Systemupdate import Systemupdate from modules.vim.VimModule import VimModule modules = { - "helloworld": HelloWorld, + "helloworld": HelloWorld().run, "install": ToolsInstaller, - "swap": SwapModule, - "update": Systemupdate, - "vim": VimModule + "swap": SwapModule().run, + "update": Systemupdate().run, + "vim": VimModule().run } fire.Fire(modules)