sh_cpl/src/cpl_cli/command/start_service.py

23 lines
541 B
Python
Raw Normal View History

2021-03-12 22:53:02 +01:00
from cpl_cli.command_abc import CommandABC
2021-03-13 11:05:17 +01:00
from cpl_cli.live_server.live_server_service import LiveServerService
2021-03-12 22:53:02 +01:00
2021-03-13 11:05:17 +01:00
class StartService(CommandABC):
2021-03-12 22:53:02 +01:00
2021-03-13 11:05:17 +01:00
def __init__(self, live_server: LiveServerService):
2021-03-14 16:01:15 +01:00
"""
Service for the CLI command start
:param live_server:
"""
2021-03-12 22:53:02 +01:00
CommandABC.__init__(self)
2021-03-13 11:05:17 +01:00
self._live_server = live_server
2021-03-12 22:53:02 +01:00
def run(self, args: list[str]):
2021-03-14 16:01:15 +01:00
"""
Entry point of command
:param args:
:return:
"""
self._live_server.start(args)