from cpl.console.console import Console from cpl_cli.command_abc import CommandABC from cpl_cli.publish.publisher_abc import PublisherABC class PublishService(CommandABC): def __init__(self, publisher: PublisherABC): """ Service for the CLI command publish :param publisher: """ CommandABC.__init__(self) self._publisher = publisher def run(self, args: list[str]): """ Entry point of command :param args: :return: """ self._publisher.publish()