summaryrefslogtreecommitdiff
path: root/doc/capture-output-file-with-parameter-reference.scm
diff options
context:
space:
mode:
Diffstat (limited to 'doc/capture-output-file-with-parameter-reference.scm')
-rw-r--r--doc/capture-output-file-with-parameter-reference.scm9
1 files changed, 9 insertions, 0 deletions
diff --git a/doc/capture-output-file-with-parameter-reference.scm b/doc/capture-output-file-with-parameter-reference.scm
new file mode 100644
index 0000000..3104fae
--- /dev/null
+++ b/doc/capture-output-file-with-parameter-reference.scm
@@ -0,0 +1,9 @@
+(define extract-specific-file
+ (command #:run "tar" "--extract" "--file" (input 'archive #:type 'File)
+ (input 'extractfile #:type 'string)
+ #:outputs (output 'extracted-file
+ #:type 'File
+ #:binding '((glob . "$(inputs.extractfile)")))))
+
+(workflow ((archive #:type File) (extractfile #:type string))
+ (extract-specific-file #:archive archive #:extractfile extractfile))