summaryrefslogtreecommitdiff
path: root/doc/capture-output-file-with-parameter-reference.scm
blob: fb32fc88ec765c4245baf3d3cf6189bc6851a8a4 (plain)
1
2
3
4
5
6
7
8
9
(define extract-specific-file
  (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))