2021-03-04 19:06:53 +01:00
|
|
|
from cpl_cli.command_abc import CommandABC
|
|
|
|
from cpl_cli.publish.publisher_abc import PublisherABC
|
|
|
|
|
|
|
|
|
2021-03-12 16:06:30 +01:00
|
|
|
class BuildService(CommandABC):
|
2021-03-04 19:06:53 +01:00
|
|
|
|
|
|
|
def __init__(self, publisher: PublisherABC):
|
2021-03-14 16:01:15 +01:00
|
|
|
"""
|
|
|
|
Service for the CLI command build
|
|
|
|
:param publisher:
|
|
|
|
"""
|
2021-03-04 19:06:53 +01:00
|
|
|
CommandABC.__init__(self)
|
|
|
|
|
|
|
|
self._publisher = publisher
|
|
|
|
|
|
|
|
def run(self, args: list[str]):
|
2021-03-14 16:01:15 +01:00
|
|
|
"""
|
|
|
|
Entry point of command
|
|
|
|
:param args:
|
|
|
|
:return:
|
|
|
|
"""
|
2021-03-04 19:06:53 +01:00
|
|
|
self._publisher.build()
|