skip run call for modules with just one method

This commit is contained in:
Marcel Schwarz 2020-03-06 03:05:30 +01:00
parent 89ae3b7056
commit f2f1ddb968
2 changed files with 5 additions and 5 deletions

View File

@ -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 "$@"

View File

@ -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)