23 lines
541 B
Python
23 lines
541 B
Python
from cpl_cli.command_abc import CommandABC
|
|
from cpl_cli.live_server.live_server_service import LiveServerService
|
|
|
|
|
|
class StartService(CommandABC):
|
|
|
|
def __init__(self, live_server: LiveServerService):
|
|
"""
|
|
Service for the CLI command start
|
|
:param live_server:
|
|
"""
|
|
CommandABC.__init__(self)
|
|
|
|
self._live_server = live_server
|
|
|
|
def run(self, args: list[str]):
|
|
"""
|
|
Entry point of command
|
|
:param args:
|
|
:return:
|
|
"""
|
|
self._live_server.start(args)
|