summaryrefslogtreecommitdiff
path: root/doc/capture-output-file-with-parameter-reference.scm
diff options
context:
space:
mode:
authorArun Isaac2021-06-22 08:35:37 +0530
committerArun Isaac2021-06-22 08:35:37 +0530
commitb78afadc51c4c5666114fab26db31e0199c1f50c (patch)
tree5b80bfae3ae93592fe722ec72f624da9211648ea /doc/capture-output-file-with-parameter-reference.scm
parentf99a10235c437899448f2a2cd112e5d9a7c16464 (diff)
downloadccwl-b78afadc51c4c5666114fab26db31e0199c1f50c.tar.gz
ccwl-b78afadc51c4c5666114fab26db31e0199c1f50c.tar.lz
ccwl-b78afadc51c4c5666114fab26db31e0199c1f50c.zip
doc: Specify command inputs in a separate argument.
* doc/capture-output-file-with-parameter-reference.scm, doc/capture-output-file.scm, doc/capture-stdout.scm, doc/checksum.scm, doc/decompress-compile-run.scm, doc/hello-world.scm: Specify command inputs in a separate argument. * doc/ccwl.skb (Tutorial)[First example]: Update description of command definition accordingly.
Diffstat (limited to 'doc/capture-output-file-with-parameter-reference.scm')
-rw-r--r--doc/capture-output-file-with-parameter-reference.scm10
1 files changed, 5 insertions, 5 deletions
diff --git a/doc/capture-output-file-with-parameter-reference.scm b/doc/capture-output-file-with-parameter-reference.scm
index 3104fae..bb5476b 100644
--- a/doc/capture-output-file-with-parameter-reference.scm
+++ b/doc/capture-output-file-with-parameter-reference.scm
@@ -1,9 +1,9 @@
(define extract-specific-file
- (command #:run "tar" "--extract" "--file" (input 'archive #:type 'File)
- (input 'extractfile #:type 'string)
- #:outputs (output 'extracted-file
- #:type 'File
- #:binding '((glob . "$(inputs.extractfile)")))))
+ (command #:inputs (archive #:type 'File) (extractfile #:type 'string)
+ #:run "tar" "--extract" "--file" archive extractfile
+ #:outputs (extracted-file
+ #:type 'File
+ #:binding '((glob . "$(inputs.extractfile)")))))
(workflow ((archive #:type File) (extractfile #:type string))
(extract-specific-file #:archive archive #:extractfile extractfile))