From ced4323b796944a8f1929ebae6ed068638732d8f Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Tue, 21 Nov 2023 15:35:45 +0000 Subject: ccwl: Comment on passing global workflow inputs through all commands. * ccwl/ccwl.scm (collect-steps): Comment on passing global workflow inputs through all commands. --- ccwl/ccwl.scm | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'ccwl/ccwl.scm') diff --git a/ccwl/ccwl.scm b/ccwl/ccwl.scm index b9ee81f..9b5132f 100644 --- a/ccwl/ccwl.scm +++ b/ccwl/ccwl.scm @@ -725,10 +725,14 @@ represented by objects." ;; If there are no literal arguments, construct ;; object. (() - (values (append (remove key-step input-keys) - (map (lambda (output) - (key (output-id output) step-id-symbol)) - (function-outputs function-object))) + (values (append + ;; Pass global workflow inputs through. Thus, + ;; these are globally visible to all steps, and + ;; are a kind of "global variable". + (remove key-step input-keys) + (map (lambda (output) + (key (output-id output) step-id-symbol)) + (function-outputs function-object))) (list (make-step step-id-symbol #'function (map (match-lambda -- cgit v1.2.3