about summary refs log tree commit diff
path: root/e2e-tests/tools/workflow-step-with-optional-and-required-inputs.scm
blob: aa71940699d0d8713b8ad10a85cbf3b33ab4108b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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))