23 lines
507 B
Python
23 lines
507 B
Python
from cpl_cli.command_abc import CommandABC
|
|
from cpl_cli.publish.publisher_abc import PublisherABC
|
|
|
|
|
|
class BuildService(CommandABC):
|
|
|
|
def __init__(self, publisher: PublisherABC):
|
|
"""
|
|
Service for the CLI command build
|
|
:param publisher:
|
|
"""
|
|
CommandABC.__init__(self)
|
|
|
|
self._publisher = publisher
|
|
|
|
def run(self, args: list[str]):
|
|
"""
|
|
Entry point of command
|
|
:param args:
|
|
:return:
|
|
"""
|
|
self._publisher.build()
|