From 24f722d39fc9b669554967ff6e74c99138d24261 Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Thu, 27 Nov 2025 00:52:18 +0000 Subject: workflow: Add defaults to inputs even with Workflow class workflows. Earlier, we were adding defaults only with CommandLineTool class workflows, and ignoring defaults in Workflow class workflows. --- .../workflow-step-with-optional-and-required-inputs.scm | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 e2e-tests/tools/workflow-step-with-optional-and-required-inputs.scm (limited to 'e2e-tests/tools/workflow-step-with-optional-and-required-inputs.scm') diff --git a/e2e-tests/tools/workflow-step-with-optional-and-required-inputs.scm b/e2e-tests/tools/workflow-step-with-optional-and-required-inputs.scm new file mode 100644 index 0000000..aa71940 --- /dev/null +++ b/e2e-tests/tools/workflow-step-with-optional-and-required-inputs.scm @@ -0,0 +1,14 @@ +(define echo + (command #:inputs (message1 #:type string) (message2 #:type string) + #:run "echo" message1 message2 + #:outputs (output_message #:type stdout))) + +(define echo-workflow + (workflow ((message1 #:type string) + (message2 #:type string + #:default "Hello world!")) + (echo #:message1 message1 + #:message2 message2))) + +(workflow ((message #:type string)) + (echo-workflow #:message1 message)) -- cgit 1.4.1