sh_cpl/src/cpl_cli/cli.py

21 lines
507 B
Python
Raw Normal View History

2021-03-03 18:37:54 +01:00
from cpl.application.application_abc import ApplicationABC
from cpl.console.console import Console
class CLI(ApplicationABC):
def __init__(self):
ApplicationABC.__init__(self)
def configure(self):
if self._services is None:
Console.error('Service provider is empty')
exit()
if self._configuration is None:
Console.error('Configuration is empty')
exit()
def main(self):
Console.write_line(self._configuration)