File tree Expand file tree Collapse file tree 5 files changed +23
-13
lines changed Expand file tree Collapse file tree 5 files changed +23
-13
lines changed Original file line number Diff line number Diff line change 732
732
" class " : " Directory" ,
733
733
" listing " : [
734
734
{
735
- " entryname " : " hello.txt" ,
736
- " entry " : {
737
- " class " : " File" ,
738
- " location " : " hello.txt"
739
- }
735
+ " class " : " File" ,
736
+ " location " : " hello.txt"
740
737
},
741
738
{
742
- " entryname " : " goodbye.txt" ,
743
- " entry " : {
744
- " class " : " File" ,
745
- " location " : " goodbye.txt"
746
- }
739
+ " class " : " File" ,
740
+ " location " : " goodbye.txt"
747
741
}
748
742
],
749
743
}
785
779
}
786
780
tool : draft-4/stagefile.cwl
787
781
doc : Test writable staged files.
782
+
783
+ - job : draft-4/file-literal.yml
784
+ output :
785
+ output_file :
786
+ class : File
787
+ checksum : sha1$d0e04ff6c413c7d57f9a0ca0a33cd3ab52e2dd9c
788
+ location : output.txt
789
+ size : 13
790
+ tool : draft-4/cat3-tool.cwl
791
+ doc : Test file literal as input
Original file line number Diff line number Diff line change
1
+ file1 :
2
+ class : File
3
+ contents : " Hello file literal"
Original file line number Diff line number Diff line change @@ -4,7 +4,8 @@ baseCommand: "true"
4
4
requirements :
5
5
InitialWorkDirRequirement:
6
6
listing :
7
- $(inputs.newname): $(inputs.srcfile.location)
7
+ - entryname : $(inputs.newname)
8
+ entry : $(inputs.srcfile)
8
9
inputs :
9
10
srcfile: File
10
11
newname: string
Original file line number Diff line number Diff line change 9
9
requirements :
10
10
- class: InitialWorkDirRequirement
11
11
listing :
12
- input.txt: $(inputs.file)
12
+ - entryname : input.txt
13
+ entry : $(inputs.file)
13
14
- class: InlineJavascriptRequirement
14
15
15
16
inputs :
Original file line number Diff line number Diff line change @@ -10,7 +10,8 @@ requirements:
10
10
- "var t = function(s) { return _. template(s)({'inputs': inputs}); };"
11
11
- class: InitialWorkDirRequirement
12
12
listing :
13
- foo.txt: $(t("The file is <%= inputs. file1. path. split('/'). slice(-1)[0] %>\n" ))
13
+ - entryname : foo.txt
14
+ entry : $(t("The file is <%= inputs. file1. path. split('/'). slice(-1)[0] %>\n" ))
14
15
inputs :
15
16
- id : file1
16
17
type : File
You can’t perform that action at this time.
0 commit comments