Improved application host

This commit is contained in:
2021-03-04 06:53:38 +01:00
parent 2c2c1ede21
commit 960607a60d
7 changed files with 73 additions and 26 deletions

View File

@@ -1,6 +1,6 @@
from abc import abstractmethod, ABC
from collections import Callable
from typing import Type, Union
from typing import Type, Union, Optional
from cpl.configuration.configuration_model_abc import ConfigurationModelABC
from cpl.environment.environment_abc import EnvironmentABC
@@ -19,6 +19,14 @@ class ConfigurationABC(ABC):
@abstractmethod
def additional_arguments(self) -> list[str]: pass
@property
@abstractmethod
def argument_error_function(self) -> Optional[Callable]: pass
@argument_error_function.setter
@abstractmethod
def argument_error_function(self, argument_error_function: Callable): pass
@abstractmethod
def add_environment_variables(self, prefix: str): pass