Rename sample module to hello world
This commit is contained in:
parent
2f5f2cffd8
commit
c5e3e8f368
5
modules/helloworld/__init__.py
Normal file
5
modules/helloworld/__init__.py
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
from .helloWorld import HelloWorld
|
||||||
|
|
||||||
|
|
||||||
|
def get_module():
|
||||||
|
return HelloWorld()
|
12
modules/helloworld/helloWorld.py
Normal file
12
modules/helloworld/helloWorld.py
Normal 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.")
|
@ -1,5 +0,0 @@
|
|||||||
from .sampleModule import SampleModule
|
|
||||||
|
|
||||||
|
|
||||||
def get_module():
|
|
||||||
return SampleModule()
|
|
@ -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")
|
|
1
start.sh
1
start.sh
@ -7,6 +7,7 @@ then
|
|||||||
apt install python3.7 python3-pip -y
|
apt install python3.7 python3-pip -y
|
||||||
pip3 install setuptools wheel regex
|
pip3 install setuptools wheel regex
|
||||||
pip3 install -r requirements.txt
|
pip3 install -r requirements.txt
|
||||||
|
python3 main.py helloworld run
|
||||||
else
|
else
|
||||||
python3 main.py "$@"
|
python3 main.py "$@"
|
||||||
fi
|
fi
|
Loading…
Reference in New Issue
Block a user