From 822249655a5fb4e1e1fa2dfaf354cadcca9bee7c Mon Sep 17 00:00:00 2001 From: Aki Van Ness Date: Mon, 21 Nov 2022 22:37:36 -0500 Subject: [PATCH] sby: core: started on the stage config generation --- sbysrc/sby_core.py | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/sbysrc/sby_core.py b/sbysrc/sby_core.py index d7e5a8d..1a3eac5 100644 --- a/sbysrc/sby_core.py +++ b/sbysrc/sby_core.py @@ -1332,7 +1332,22 @@ class SbyTask(SbyConfig): self.retcode = 0 return - # TODO: Stage stuff + # Check to see if we have stages to implement + if len(self.stage.keys()) > 0: + for stage_name, data in self.stage.items(): + self.setup_stage( + setupmode, config = list( + map( + lambda l: l.strip(), + f'''\ + [options] + mode {data['mode']} + '''.splitlines() + ) + ), + name = stage_name + ) + if self.opt_make_model is not None: for name in self.opt_make_model.split(","):