Added the built int functions registry

Still lots to do tho
This commit is contained in:
2026-07-25 15:06:41 +01:00
parent a76374e128
commit 026ab23a89
11 changed files with 308 additions and 110 deletions
+7 -10
View File
@@ -34,19 +34,16 @@ def post(ctx):
def main():
newPlay: Play = Play("backup dirs")
newPlay.add_step(
"backup dirs",
CustomStep(
"custom step",
pre, play, post,
)
)
newPlay: Play
try:
newPlay = Play.from_yaml("./playbook.yaml")
except Exception as e:
print(f"Failed to load playbook: {e}")
exit(1)
print(newPlay.view_playbook())
print(json.dumps(asdict(newPlay.play()), indent=2))
# print(json.dumps(asdict(newPlay.play()), indent=2))
if __name__ == "__main__":