sh_cpl/src/cpl_cli/command/start_service.py

14 lines
350 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-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]):
self._live_server.start()