From c77674afa4519f681bf8512e1ce994c95f346f42 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sun, 20 Oct 2024 18:54:47 +0200 Subject: [PATCH] inputs --- spcd/__init__.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/spcd/__init__.py b/spcd/__init__.py index cf40de2..c67180d 100644 --- a/spcd/__init__.py +++ b/spcd/__init__.py @@ -60,26 +60,25 @@ def install_actions() -> None: fs.make_directory(directory) match action: case "action": - yaml = """\ -inputs: + inputs = """\ arg-1: required: true arg_2: required: true """ case "synchronize": - yaml = """\ -inputs: + inputs = """\ source: default: out required: false """ - yaml = f"""{yaml}\ + yaml = f"""\ runs: using: composite steps: - run: {vpy} -m spcd {action} -""" +inputs: +{inputs}""" fs.write(directory / name, yaml) cat(directory / name)