summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArun Isaac2023-11-14 23:23:57 +0000
committerArun Isaac2023-11-14 23:23:57 +0000
commit7d1cc9b535afeb6021bec83b3220928998361528 (patch)
tree8f7484e3497e8f38f5f2fe7ce1ea0f7fd1c9ae58
parent060ddf677d01e408c7a49791150bfd24b76416e0 (diff)
downloadccwl-7d1cc9b535afeb6021bec83b3220928998361528.tar.gz
ccwl-7d1cc9b535afeb6021bec83b3220928998361528.tar.lz
ccwl-7d1cc9b535afeb6021bec83b3220928998361528.zip
doc: Add scatter-gather snippet.
I forgot to add this file in my previous commit. * doc/scatter-gather.scm: New file.
-rw-r--r--doc/scatter-gather.scm8
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/scatter-gather.scm b/doc/scatter-gather.scm
new file mode 100644
index 0000000..7ab60d4
--- /dev/null
+++ b/doc/scatter-gather.scm
@@ -0,0 +1,8 @@
+(define print
+ (command #:inputs (message #:type string) (other-message #:type string)
+ #:run "echo" message other-message
+ #:outputs (printed-output #:type stdout)))
+
+(workflow ((message #:type string) (other-messages #:type (array string)))
+ (scatter (print #:message message)
+ #:other-message other-messages))