Improved command handling
This commit is contained in:
13
src/cpl_cli/command/build.py
Normal file
13
src/cpl_cli/command/build.py
Normal file
@@ -0,0 +1,13 @@
|
||||
from cpl_cli.command_abc import CommandABC
|
||||
from cpl_cli.publish.publisher_abc import PublisherABC
|
||||
|
||||
|
||||
class Build(CommandABC):
|
||||
|
||||
def __init__(self, publisher: PublisherABC):
|
||||
CommandABC.__init__(self)
|
||||
|
||||
self._publisher = publisher
|
||||
|
||||
def run(self, args: list[str]):
|
||||
self._publisher.build()
|
||||
Reference in New Issue
Block a user