Rename sample module to hello world

This commit is contained in:
Marcel Schwarz 2020-03-05 21:34:17 +01:00
parent 2f5f2cffd8
commit c5e3e8f368
5 changed files with 18 additions and 17 deletions

View File

@ -0,0 +1,5 @@
from .helloWorld import HelloWorld
def get_module():
return HelloWorld()

View File

@ -0,0 +1,12 @@
from AbstractModule import AbstractModule
class HelloWorld(AbstractModule):
"""docstring for SampleModule."""
def __init__(self):
super(HelloWorld, self).__init__()
def run(self):
print("This shows that your installation is working correctly.")
print("You can now start using the tool.")

View File

@ -1,5 +0,0 @@
from .sampleModule import SampleModule
def get_module():
return SampleModule()

View File

@ -1,12 +0,0 @@
from AbstractModule import AbstractModule
class SampleModule(AbstractModule):
"""docstring for SampleModule."""
def __init__(self):
super(SampleModule, self).__init__()
def run(self):
print("Command 1")
print("Command 2")

View File

@ -7,6 +7,7 @@ then
apt install python3.7 python3-pip -y
pip3 install setuptools wheel regex
pip3 install -r requirements.txt
python3 main.py helloworld run
else
python3 main.py "$@"
fi