Skip to content

Commit d1d53b3

Browse files
committed
Merge pull request #227 from common-workflow-language/stderr
add stderr object to draft-4
2 parents 347c28e + 0b987d3 commit d1d53b3

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

draft-4/CommandLineTool.yml

+12
Original file line numberDiff line numberDiff line change
@@ -434,6 +434,18 @@ $graph:
434434
doc: |
435435
A path to a file whose contents must be piped into the command's
436436
standard input stream.
437+
- name: stderr
438+
type: ["null", string, "#Expression"]
439+
doc: |
440+
Capture the command's standard error stream to a file written to
441+
the designated output directory.
442+
443+
If `stderr` is a string, it specifies the file name to use.
444+
445+
If `stderr` is an expression, the expression is evaluated and must
446+
return a string with the file name to use to capture stderr. If the
447+
return value is not a string, or the resulting path contains illegal
448+
characters (such as the path separator `/`) it is an error.
437449
- name: stdout
438450
type: ["null", string, "#Expression"]
439451
doc: |

draft-4/conformance_test_draft-4.yaml

+6
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,12 @@
4444
tool: draft-4/cat3-tool.cwl
4545
doc: Test command line with stdout redirection
4646

47+
- args: [egrep]
48+
stderr: error.txt
49+
job:
50+
tool: draft-4/egrep-stderr.cwl
51+
doc: Test command line with stdout redirection
52+
4753
- args: [cat]
4854
job: draft-4/cat-job.json
4955
stdin: draft-4/hello.txt

0 commit comments

Comments
 (0)