Skip to content

Commit 5239b16

Browse files
author
Peter Amstutz
committed
Fix syntax error. Update tests to use InitialWorkDirRequirement
1 parent 56ef87a commit 5239b16

File tree

4 files changed

+11
-12
lines changed

4 files changed

+11
-12
lines changed

draft-4/CommandLineTool.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -632,10 +632,11 @@ $graph:
632632
- name: entryname
633633
type: [string, Expression]
634634
jsonldPredicate:
635-
"_id": cwl:entryname
635+
_id: cwl:entryname
636636
- name: entry
637637
type: [string, Expression]
638-
"_id": cwl:entry
638+
jsonldPredicate:
639+
_id: cwl:entry
639640

640641

641642
- name: InitialWorkDirRequirement

draft-4/draft-4/rename.cwl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ cwlVersion: cwl:draft-4.dev3
33
baseCommand: "true"
44
requirements:
55
CreateFileRequirement:
6-
fileDef:
7-
- filename: $(inputs.newname)
8-
fileContent: $(inputs.srcfile)
6+
listing:
7+
- entryname: $(inputs.newname)
8+
entry: $(inputs.srcfile)
99
inputs:
1010
srcfile: File
1111
newname: string

draft-4/draft-4/search.cwl

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,9 @@ $graph:
77
- valueFrom: input.txt
88
position: 1
99
requirements:
10-
- class: CreateFileRequirement
11-
fileDef:
12-
- filename: input.txt
13-
fileContent: $(inputs.file)
10+
- class: InitialWorkDirRequirement
11+
listing:
12+
input.txt: $(inputs.file)
1413
- class: InlineJavascriptRequirement
1514

1615
inputs:

draft-4/draft-4/template-tool.cwl

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,8 @@ requirements:
99
- { $include: underscore.js }
1010
- "var t = function(s) { return _.template(s)({'inputs': inputs}); };"
1111
- class: CreateFileRequirement
12-
fileDef:
13-
- filename: foo.txt
14-
fileContent: >
12+
listing:
13+
foo.txt: >
1514
$(t("The file is <%= inputs.file1.path.split('/').slice(-1)[0] %>\n"))
1615
inputs:
1716
- id: file1

0 commit comments

Comments
 (0)