feat: add preset resolver

This commit is contained in:
2023-03-21 20:19:27 +03:00
parent 81c704576a
commit 265c80f082
12 changed files with 183 additions and 126 deletions
+5 -4
View File
@@ -73,10 +73,11 @@ class PipeRunner:
pipe = self._parser.parse(pipeline)
return self.run(pipe)
def check_conditions(self, conditions: List[str]) -> bool:
for condition in conditions:
if not self.resolve_value(condition):
return False
def check_conditions(self, conditions: Optional[List[str]]) -> bool:
if conditions:
for condition in conditions:
if not self.resolve_value(condition):
return False
return True