summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArun Isaac2021-03-21 15:50:43 +0530
committerArun Isaac2021-03-21 15:50:43 +0530
commitfec5f25f5a6a602a9141d09ad60c58e98f874921 (patch)
treecba64178b91be5578ef8a0b966af6138402251ae
parentcde06178635edc14f5bb28273791f9b406995de6 (diff)
downloadccwl-fec5f25f5a6a602a9141d09ad60c58e98f874921.tar.gz
ccwl-fec5f25f5a6a602a9141d09ad60c58e98f874921.tar.lz
ccwl-fec5f25f5a6a602a9141d09ad60c58e98f874921.zip
Set the default output of a pipeline.
* ccwl/ccwl.scm (pipeline): Set the stdout of the last command to be the default output of the pipeline.
-rw-r--r--ccwl/ccwl.scm7
1 files changed, 6 insertions, 1 deletions
diff --git a/ccwl/ccwl.scm b/ccwl/ccwl.scm
index e920e81..97613a2 100644
--- a/ccwl/ccwl.scm
+++ b/ccwl/ccwl.scm
@@ -202,7 +202,12 @@ re-matched."
interface-inputs
outputs)))
-(define (pipeline id steps outputs)
+(define* (pipeline id steps
+ #:optional
+ (outputs
+ (list (output (string-append id "_stdout")
+ #:source (string-append (step-id (last steps))
+ "/stdout")))))
;; Error out if any step does not encapsulate a command.
(cond
((find (lambda (step)