wrapper: add Wrapper.argv_override

This commit is contained in:
InsanePrawn 2023-03-13 05:32:37 +01:00
parent ec0e430c00
commit d2d9cb6c7c
2 changed files with 9 additions and 2 deletions

View file

@ -31,15 +31,17 @@ class Wrapper(Protocol):
"""
class BaseWrapper(Wrapper):
class Wrapper(WrapperProtocol):
uuid: str
identifier: str
type: str
wrapped_config_path: str
argv_override: Optional[list[str]]
def __init__(self, random_id: Optional[str] = None, name: Optional[str] = None):
self.uuid = str(random_id or uuid.uuid4())
self.identifier = name or f'kupferbootstrap-{self.uuid}'
self.argv_override = None
def filter_args_wrapper(self, args):
"""filter out -c/--config since it doesn't apply in wrapper"""