skip run call for modules with just one method
This commit is contained in:
parent
89ae3b7056
commit
f2f1ddb968
@ -10,7 +10,7 @@ then
|
|||||||
pip3 install setuptools wheel regex
|
pip3 install setuptools wheel regex
|
||||||
cd $DIR
|
cd $DIR
|
||||||
pip3 install -r requirements.txt
|
pip3 install -r requirements.txt
|
||||||
python3 main.py helloworld run
|
python3 main.py helloworld
|
||||||
else
|
else
|
||||||
cd $DIR
|
cd $DIR
|
||||||
python3 main.py "$@"
|
python3 main.py "$@"
|
||||||
|
8
main.py
8
main.py
@ -7,11 +7,11 @@ from modules.systemupdate.Systemupdate import Systemupdate
|
|||||||
from modules.vim.VimModule import VimModule
|
from modules.vim.VimModule import VimModule
|
||||||
|
|
||||||
modules = {
|
modules = {
|
||||||
"helloworld": HelloWorld,
|
"helloworld": HelloWorld().run,
|
||||||
"install": ToolsInstaller,
|
"install": ToolsInstaller,
|
||||||
"swap": SwapModule,
|
"swap": SwapModule().run,
|
||||||
"update": Systemupdate,
|
"update": Systemupdate().run,
|
||||||
"vim": VimModule
|
"vim": VimModule().run
|
||||||
}
|
}
|
||||||
|
|
||||||
fire.Fire(modules)
|
fire.Fire(modules)
|
||||||
|
Loading…
Reference in New Issue
Block a user