summaryrefslogtreecommitdiff
path: root/doc/external-cwl-workflow.scm
diff options
context:
space:
mode:
authorArun Isaac2021-11-05 12:10:06 +0530
committerArun Isaac2021-11-05 16:20:27 +0530
commit4bea0b85e1992a01dd36d32c8b2c68a497c6d001 (patch)
tree94e81feea6d0ebe90e3b0069e188c9bf42c7c1d2 /doc/external-cwl-workflow.scm
parentef62659838c6b5c0e7245aa434e07b89e3a603b9 (diff)
downloadccwl-4bea0b85e1992a01dd36d32c8b2c68a497c6d001.tar.gz
ccwl-4bea0b85e1992a01dd36d32c8b2c68a497c6d001.tar.lz
ccwl-4bea0b85e1992a01dd36d32c8b2c68a497c6d001.zip
doc: Document reuse of external CWL workflows.
* doc/ccwl.skb (Cookbook): New chapter. * doc/external-cwl-workflow.scm, doc/echo.cwl: New files. * .gitignore: Add !doc/echo.cwl.
Diffstat (limited to 'doc/external-cwl-workflow.scm')
-rw-r--r--doc/external-cwl-workflow.scm12
1 files changed, 12 insertions, 0 deletions
diff --git a/doc/external-cwl-workflow.scm b/doc/external-cwl-workflow.scm
new file mode 100644
index 0000000..36c3172
--- /dev/null
+++ b/doc/external-cwl-workflow.scm
@@ -0,0 +1,12 @@
+(define echo
+ (cwl-workflow "echo.cwl"))
+
+(define string-length
+ (command #:inputs file
+ #:run "wc" "--chars"
+ #:outputs (length #:type stdout)
+ #:stdin file))
+
+(workflow ((message #:type string))
+ (pipe (echo #:message message)
+ (string-length #:file output)))