sh_cpl/src/cpl_cli/command/publish_service.py

16 lines
394 B
Python
Raw Normal View History

2021-03-10 20:53:08 +01:00
from cpl.console.console import Console
2021-03-08 20:29:08 +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 PublishService(CommandABC):
2021-03-08 20:29:08 +01:00
def __init__(self, publisher: PublisherABC):
CommandABC.__init__(self)
self._publisher = publisher
def run(self, args: list[str]):
self._publisher.publish()
2021-03-10 14:29:35 +01:00
Console.write('\n')