File tree Expand file tree Collapse file tree 11 files changed +78
-5
lines changed Expand file tree Collapse file tree 11 files changed +78
-5
lines changed Original file line number Diff line number Diff line change @@ -646,7 +646,7 @@ $graph:
646
646
- name : listing
647
647
type :
648
648
- type : array
649
- items : DirentExt
649
+ items : [File, DirentExt]
650
650
- string
651
651
- Expression
652
652
jsonldPredicate :
Original file line number Diff line number Diff line change @@ -225,7 +225,10 @@ $graph:
225
225
_id : " cwl:path"
226
226
_type : " @id"
227
227
- name : listing
228
- type : Dirent[]?
228
+ type :
229
+ - " null"
230
+ - type : array
231
+ items : [File, Dirent]
229
232
doc : List of files or subdirectories contained in this directory
230
233
jsonldPredicate :
231
234
_id : " cwl:listing"
Original file line number Diff line number Diff line change 735
735
],
736
736
}
737
737
tool : draft-4/dir3.cwl
738
- doc : Test directory input in Docker
738
+ doc : Test directory input in Docker
739
+
740
+ - job : draft-4/dir4-job.yml
741
+ output :
742
+ " outlist " : {
743
+ " size " : 20,
744
+ " location " : " output.txt" ,
745
+ " checksum " : " sha1$13cda8661796ae241da3a18668fb552161a72592" ,
746
+ " class " : " File"
747
+ }
748
+ tool : draft-4/dir4.cwl
749
+ doc : Test directories in secondaryFiles
750
+
751
+ - job : draft-4/dir-job.yml
752
+ output : {
753
+ " outlist " : {
754
+ " checksum " : " sha1$907a866a3e0b7f1fc5a2222531c5fb9063704438" ,
755
+ " path " : " /home/peter/work/common-workflow-language/draft-4/draft-4/output.txt" ,
756
+ " size " : 33,
757
+ " location " : " file:///home/peter/work/common-workflow-language/draft-4/draft-4/output.txt" ,
758
+ " class " : " File"
759
+ }
760
+ }
761
+ tool : draft-4/dir5.cwl
762
+ doc : Test dynamic initial work dir
Original file line number Diff line number Diff line change
1
+ inf :
2
+ class : File
3
+ location : hello.tar
4
+ secondaryFiles :
5
+ - class : File
6
+ location : index.py
7
+ - entryname : testdir
8
+ entry :
9
+ class : Directory
10
+ location : testdir
Original file line number Diff line number Diff line change
1
+ class: CommandLineTool
2
+ cwlVersion: draft-4.dev3
3
+ requirements :
4
+ - class: ShellCommandRequirement
5
+ inputs :
6
+ inf: File
7
+ outputs :
8
+ outlist:
9
+ type : File
10
+ outputBinding :
11
+ glob : output.txt
12
+ baseCommand : []
13
+ arguments : ["cd" , "$(inputs. inf. dirname)" ,
14
+ {shellQuote : false, valueFrom : "&&" },
15
+ "find" , ". " ,
16
+ {shellQuote : false, valueFrom : "|" },
17
+ "sort" ]
18
+ stdout : output.txt
Original file line number Diff line number Diff line change
1
+ class: CommandLineTool
2
+ cwlVersion: draft-4.dev3
3
+ requirements :
4
+ - class: ShellCommandRequirement
5
+ - class: InitialWorkDirRequirement
6
+ listing : $(inputs.indir.listing)
7
+ inputs :
8
+ indir: Directory
9
+ outputs :
10
+ outlist:
11
+ type : File
12
+ outputBinding :
13
+ glob : output.txt
14
+ baseCommand : []
15
+ arguments : ["find" , ". " ,
16
+ {shellQuote : false, valueFrom : "|" },
17
+ "sort" ]
18
+ stdout : output.txt
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ class: CommandLineTool
2
2
cwlVersion: cwl:draft-4.dev3
3
3
baseCommand : "true"
4
4
requirements :
5
- CreateFileRequirement :
5
+ InitialWorkDirRequirement :
6
6
listing :
7
7
- entryname : $(inputs.newname)
8
8
entry : $(inputs.srcfile)
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ requirements:
8
8
expressionLib :
9
9
- { $include: underscore.js }
10
10
- "var t = function(s) { return _. template(s)({'inputs': inputs}); };"
11
- - class: CreateFileRequirement
11
+ - class: InitialWorkDirRequirement
12
12
listing :
13
13
foo.txt: >
14
14
$(t("The file is <%= inputs. file1. path. split('/'). slice(-1)[0] %>\n" ))
You can’t perform that action at this time.
0 commit comments