From b78afadc51c4c5666114fab26db31e0199c1f50c Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Tue, 22 Jun 2021 08:35:37 +0530 Subject: 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. --- doc/checksum.scm | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'doc/checksum.scm') diff --git a/doc/checksum.scm b/doc/checksum.scm index 206c2a0..4d8bfaf 100644 --- a/doc/checksum.scm +++ b/doc/checksum.scm @@ -1,14 +1,17 @@ (define md5sum - (command #:run "md5sum" (input 'file #:type 'File) - #:outputs (output 'md5 #:type 'stdout))) + (command #:inputs (file #:type 'File) + #:run "md5sum" file + #:outputs (md5 #:type 'stdout))) (define sha1sum - (command #:run "sha1sum" (input 'file #:type 'File) - #:outputs (output 'sha1 #:type 'stdout))) + (command #:inputs (file #:type 'File) + #:run "sha1sum" file + #:outputs (sha1 #:type 'stdout))) (define sha256sum - (command #:run "sha256sum" (input 'file #:type 'File) - #:outputs (output 'sha256 #:type 'stdout))) + (command #:inputs (file #:type 'File) + #:run "sha256sum" file + #:outputs (sha256 #:type 'stdout))) (workflow ((file #:type File)) (tee (md5sum #:file file) -- cgit v1.2.3