aboutsummaryrefslogtreecommitdiff
path: root/doc/capture-output-file.scm
blob: ddeb218e1e88c6580b92d312a151a4cf660d94d4 (plain)
1
2
3
4
5
6
7
8
9
(define extract
  (command #:inputs (archive #:type File)
           #:run "tar" "--extract" "--file" archive
           #:outputs (extracted-file
                      #:type 'File
                      #:binding '((glob . "hello.txt")))))

(workflow ((archive #:type File))
  (extract #:archive archive))