Skip to content

Commit 95b7454

Browse files
author
Peter Amstutz
committed
Using Dirent.
1 parent d5f2322 commit 95b7454

File tree

5 files changed

+6
-10
lines changed

5 files changed

+6
-10
lines changed

draft-4/CommandLineTool.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -639,11 +639,12 @@ $graph:
639639
template.
640640
fields:
641641
- name: entryname
642-
type: [string, Expression]
642+
type: ["null", string, Expression]
643643
jsonldPredicate:
644644
_id: cwl:entryname
645645
doc: |
646646
The name of the file or subdirectory to create in the output directory.
647+
If `entry` is a File or Directory, this overrides `basename`. Optional.
647648
- name: entry
648649
type: [string, Expression]
649650
jsonldPredicate:

draft-4/draft-4/rename.cwl

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@ baseCommand: "true"
44
requirements:
55
InitialWorkDirRequirement:
66
listing:
7-
- class: File
8-
basename: $(inputs.newname)
9-
location: $(inputs.srcfile.location)
7+
$(inputs.newname): $(inputs.srcfile.location)
108
inputs:
119
srcfile: File
1210
newname: string

draft-4/draft-4/search.cwl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ $graph:
99
requirements:
1010
- class: InitialWorkDirRequirement
1111
listing:
12-
- $(inputs.file)
12+
input.txt: $(inputs.file)
1313
- class: InlineJavascriptRequirement
1414

1515
inputs:

draft-4/draft-4/stagefile.cwl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ cwlVersion: draft-4.dev3
33
requirements:
44
InitialWorkDirRequirement:
55
listing:
6-
- class: File
7-
location: $(inputs.infile.location)
6+
- entry: $(inputs.infile)
87
writable: true
98
inputs:
109
infile: File

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@ requirements:
1010
- "var t = function(s) { return _.template(s)({'inputs': inputs}); };"
1111
- class: InitialWorkDirRequirement
1212
listing:
13-
- class: File
14-
basename: foo.txt
15-
contents: $(t("The file is <%= inputs.file1.path.split('/').slice(-1)[0] %>\n"))
13+
foo.txt: $(t("The file is <%= inputs.file1.path.split('/').slice(-1)[0] %>\n"))
1614
inputs:
1715
- id: file1
1816
type: File

0 commit comments

Comments
 (0)