aboutsummaryrefslogtreecommitdiff
path: root/doc/capture-output-file.scm
diff options
context:
space:
mode:
Diffstat (limited to 'doc/capture-output-file.scm')
-rw-r--r--doc/capture-output-file.scm8
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/capture-output-file.scm b/doc/capture-output-file.scm
new file mode 100644
index 0000000..b13549e
--- /dev/null
+++ b/doc/capture-output-file.scm
@@ -0,0 +1,8 @@
+(define extract
+ (command #:run "tar" "--extract" "--file" (input 'archive #:type 'File)
+ #:outputs (output 'extracted-file
+ #:type 'File
+ #:binding '((glob . "hello.txt")))))
+
+(workflow ((archive #:type File))
+ (extract #:archive archive))