diff options
| author | Arun Isaac | 2025-11-27 00:52:18 +0000 |
|---|---|---|
| committer | Arun Isaac | 2025-11-27 00:56:16 +0000 |
| commit | 24f722d39fc9b669554967ff6e74c99138d24261 (patch) | |
| tree | 9c77c856cd6a892a72703495e11317bc21bd93a7 /e2e-tests/tools/workflow-step-with-optional-and-required-inputs.scm | |
| parent | ce7b724fa4718328e319f518ca899200bf292f5f (diff) | |
| download | ravanan-24f722d39fc9b669554967ff6e74c99138d24261.tar.gz ravanan-24f722d39fc9b669554967ff6e74c99138d24261.tar.lz ravanan-24f722d39fc9b669554967ff6e74c99138d24261.zip | |
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.
Diffstat (limited to 'e2e-tests/tools/workflow-step-with-optional-and-required-inputs.scm')
| -rw-r--r-- | e2e-tests/tools/workflow-step-with-optional-and-required-inputs.scm | 14 |
1 files changed, 14 insertions, 0 deletions
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)) |
