@@ -79,30 +79,6 @@ $graph:
79
79
- {$include: concepts.md}
80
80
- {$include: invocation.md}
81
81
82
- - type : record
83
- name : FileDef
84
- doc : |
85
- Define a file that must be placed in the designated output directory
86
- prior to executing the command line tool. May be the result of executing
87
- an expression, such as building a configuration file from a template.
88
- fields :
89
- - name : " filename"
90
- type : ["string", "#Expression"]
91
- doc : " The name of the file to create in the output directory."
92
- - name : " fileContent"
93
- type : ["string", "#Expression"]
94
- doc : |
95
- If the value is a string literal or an expression which evaluates to a
96
- string, a new file must be created with the string as the file contents.
97
-
98
- If the value is an expression that evaluates to a File object, this
99
- indicates the referenced file should be added to the designated output
100
- directory prior to executing the tool.
101
-
102
- Files added in this way may be read-only, and may be provided
103
- by bind mounts or file system links to avoid
104
- unnecessary copying of the input file.
105
-
106
82
107
83
- type : record
108
84
name : EnvironmentDef
@@ -628,20 +604,53 @@ $graph:
628
604
629
605
- name : DirentExt
630
606
type : record
607
+ doc : |
608
+ Define a file or subdirectory that must be placed in the designated output
609
+ directory prior to executing the command line tool. May be the result of
610
+ executing an expression, such as building a configuration file from a
611
+ template.
631
612
fields :
632
613
- name : entryname
633
614
type : [string, Expression]
634
615
jsonldPredicate :
635
616
_id : cwl:entryname
617
+ doc : |
618
+ The name of the file or subdirectory to create in the output directory.
636
619
- name : entry
637
620
type : [string, Expression]
638
621
jsonldPredicate :
639
622
_id : cwl:entry
623
+ doc : |
624
+ If the value is a string literal or an expression which evaluates to a
625
+ string, a new file must be created with the string as the file contents.
640
626
627
+ If the value is an expression that evaluates to a `File` object, this
628
+ indicates the referenced file should be added to the designated output
629
+ directory prior to executing the tool.
630
+
631
+ If the value is an expression that evaluates to a `Dirent` object, this
632
+ indicates that the File or Directory in `entry` should be added to the
633
+ designated output directory with the name in `entryname`.
634
+
635
+ If `writable` is false, the file may be made available using a bind
636
+ mount or file system link to avoid unnecessary copying of the input
637
+ file.
638
+ - name : writable
639
+ type : boolean?
640
+ doc : |
641
+ If true, the file or directory must be writable by the tool. Changes
642
+ to the file or directory must be isolated and not visible by any other
643
+ CommandLineTool process. This may be implemented by making a copy of
644
+ the original file or directory. Default false (files and directories
645
+ read-only by default).
641
646
642
647
- name : InitialWorkDirRequirement
643
648
type : record
644
649
extends : ProcessRequirement
650
+ doc :
651
+ Define a list of files and subdirectories that must be created by the
652
+ workflow platform in the designated output directory prior to executing the
653
+ command line tool.
645
654
fields :
646
655
- name : listing
647
656
type :
@@ -653,24 +662,12 @@ $graph:
653
662
_id : " cwl:listing"
654
663
mapSubject : entryname
655
664
mapPredicate : entry
665
+ doc : |
666
+ The list of files or subdirectories that must be placed in the
667
+ designated output directory prior to executing the command line tool.
656
668
657
-
658
- - name : CreateFileRequirement
659
- type : record
660
- extends : " #ProcessRequirement"
661
- doc : |
662
- *Deprecated*, superceded by InitialWorkDirRequirement.
663
-
664
- Define a list of files that must be created by the workflow
665
- platform in the designated output directory prior to executing the command
666
- line tool. See `FileDef` for details.
667
- fields :
668
- - name : fileDef
669
- type :
670
- type : " array"
671
- items : " #FileDef"
672
- doc : The list of files.
673
-
669
+ May be an expression. If so, the expression return value must validate
670
+ as `{type: array, items: [File, Dirent]}`.
674
671
675
672
- name : EnvVarRequirement
676
673
type : record
0 commit comments