sh_cpl/src/cpl_cli/command/publish.py

14 lines
319 B
Python
Raw Normal View History

2021-03-08 20:29:08 +01:00
from cpl_cli.command_abc import CommandABC
from cpl_cli.publish.publisher_abc import PublisherABC
class Publish(CommandABC):
def __init__(self, publisher: PublisherABC):
CommandABC.__init__(self)
self._publisher = publisher
def run(self, args: list[str]):
self._publisher.publish()