Skip to content

Commit cbd7bc2

Browse files
committed
only allow use of stderr/stdout shortcuts as types for the Outputs. Better place the docs
1 parent 0ba703d commit cbd7bc2

File tree

2 files changed

+102
-80
lines changed

2 files changed

+102
-80
lines changed

draft-4/CommandLineTool.yml

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,86 @@ $graph:
382382
specializeTo: "#CommandOutputArraySchema"
383383
- specializeFrom: "#OutputBinding"
384384
specializeTo: "#CommandOutputBinding"
385+
fields:
386+
- name: type
387+
type:
388+
- "null"
389+
- "#CWLType"
390+
- "#stdout"
391+
- "#stderr"
392+
- "sld:RecordSchema"
393+
- "sld:EnumSchema"
394+
- "sld:ArraySchema"
395+
- string
396+
- type: array
397+
items:
398+
- "#CWLType"
399+
- "sld:RecordSchema"
400+
- "sld:EnumSchema"
401+
- "sld:ArraySchema"
402+
- string
403+
jsonldPredicate:
404+
"_id": "sld:type"
405+
"_type": "@vocab"
406+
refScope: 2
407+
typeDSL: True
408+
doc: |
409+
Specify valid types of data that may be assigned to this parameter.
385410
411+
- name: stdout
412+
type: enum
413+
symbols: [ "cwl:stdout" ]
414+
docParent: "#CommandOutputParameter"
415+
doc: |
416+
Only valid as a `type` for an output.
417+
418+
The following
419+
```
420+
outputs:
421+
an_output_name:
422+
type: stdout
423+
424+
stdout: a_stdout_file
425+
```
426+
is equivalent to
427+
```
428+
outputs:
429+
an_output_name:
430+
type: File
431+
outputBinding:
432+
glob: a_stdout_file
433+
434+
stdout: a_stdout_file
435+
```
436+
437+
If there is no `stdout` name provided, a random filename will be created.
438+
439+
440+
- name: stderr
441+
type: enum
442+
symbols: [ "cwl:stderr" ]
443+
docParent: "#CommandOutputParameter"
444+
doc: |
445+
Only valid as a `type` for an output.
446+
447+
The following
448+
```
449+
outputs:
450+
an_output_name:
451+
type: stderr
452+
453+
stderr: a_stderr_file
454+
```
455+
is equivalent to
456+
```
457+
outputs:
458+
an_output_name:
459+
type: File
460+
outputBinding:
461+
glob: a_stderr_file
462+
```
463+
464+
If there is no `stderr` name provided, a random filename will be created.
386465
387466
- type: record
388467
name: CommandLineTool

draft-4/Process.yml

Lines changed: 23 additions & 80 deletions
Original file line numberDiff line numberDiff line change
@@ -138,61 +138,6 @@ $graph:
138138
# type: ["null", long]
139139
# doc: Optional directory size.
140140

141-
- name: CWLStdOut
142-
type: enum
143-
symbols: [ "cwl:stdout" ]
144-
doc: |
145-
Only valid as a `type` for an output.
146-
147-
The following
148-
```
149-
outputs:
150-
an_output_name:
151-
type: stdout
152-
153-
stdout: a_stdout_file
154-
```
155-
is equivalent to
156-
```
157-
outputs:
158-
an_output_name:
159-
type: File
160-
outputBinding:
161-
glob: a_stdout_file
162-
163-
stdout: a_stdout_file
164-
```
165-
166-
If there is no `stdout` name provided, a random filename will be created.
167-
168-
169-
- name: CWLStdErr
170-
type: enum
171-
symbols: [ "cwl:stderr" ]
172-
doc: |
173-
Only valid as a `type` for an output.
174-
175-
The following
176-
```
177-
outputs:
178-
an_output_name:
179-
type: stderr
180-
181-
stderr: a_stderr_file
182-
```
183-
is equivalent to
184-
```
185-
outputs:
186-
an_output_name:
187-
type: File
188-
outputBinding:
189-
glob: a_stderr_file
190-
191-
stderr: a_stderr_file
192-
```
193-
194-
If there is no `stderr` name provided, a random filename will be created.
195-
196141
- name: SchemaBase
197142
type: record
198143
abstract: true
@@ -263,31 +208,6 @@ $graph:
263208
Define an input or output parameter to a process.
264209
265210
fields:
266-
- name: type
267-
type:
268-
- "null"
269-
- "#CWLType"
270-
- "#CWLStdOut"
271-
- "#CWLStdErr"
272-
- "sld:RecordSchema"
273-
- "sld:EnumSchema"
274-
- "sld:ArraySchema"
275-
- string
276-
- type: array
277-
items:
278-
- "#CWLType"
279-
- "sld:RecordSchema"
280-
- "sld:EnumSchema"
281-
- "sld:ArraySchema"
282-
- string
283-
jsonldPredicate:
284-
"_id": "sld:type"
285-
"_type": "@vocab"
286-
refScope: 2
287-
typeDSL: True
288-
doc: |
289-
Specify valid types of data that may be assigned to this parameter.
290-
291211
- name: label
292212
type:
293213
- "null"
@@ -458,6 +378,29 @@ $graph:
458378
- specializeFrom: "sld:ArraySchema"
459379
specializeTo: "#InputArraySchema"
460380
fields:
381+
- name: type
382+
type:
383+
- "null"
384+
- "#CWLType"
385+
- "sld:RecordSchema"
386+
- "sld:EnumSchema"
387+
- "sld:ArraySchema"
388+
- string
389+
- type: array
390+
items:
391+
- "#CWLType"
392+
- "sld:RecordSchema"
393+
- "sld:EnumSchema"
394+
- "sld:ArraySchema"
395+
- string
396+
jsonldPredicate:
397+
"_id": "sld:type"
398+
"_type": "@vocab"
399+
refScope: 2
400+
typeDSL: True
401+
doc: |
402+
Specify valid types of data that may be assigned to this parameter.
403+
461404
- name: id
462405
type: string
463406
jsonldPredicate: "@id"

0 commit comments

Comments
 (0)