Renamed by internal conventions
This commit is contained in:
15
src/cpl_cli/command/publish_service.py
Normal file
15
src/cpl_cli/command/publish_service.py
Normal file
@@ -0,0 +1,15 @@
|
||||
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):
|
||||
CommandABC.__init__(self)
|
||||
|
||||
self._publisher = publisher
|
||||
|
||||
def run(self, args: list[str]):
|
||||
self._publisher.publish()
|
||||
Console.write('\n')
|
||||
Reference in New Issue
Block a user