File tree Expand file tree Collapse file tree 5 files changed +43
-16
lines changed Expand file tree Collapse file tree 5 files changed +43
-16
lines changed Original file line number Diff line number Diff line change @@ -11,8 +11,8 @@ How to make a new draft version of the CWL spec
11
11
12
12
4 . In the reference implementation (cwltool): make a new branch, and update the
13
13
subtree checkout of the spec:
14
-
15
- git subtree merge -P cwltool/schemas/ cwl_repo/v1.1.0-dev1
14
+
15
+ git subtree merge --squash - P cwltool/schemas/ cwl_repo/v1.1.0-dev1
16
16
17
17
Where ` cwl_repo ` is the remote repository for the CWL specifications.
18
18
4 . In the reference implementation, teach it about the new draft version:
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ JUNIT_XML=""
17
17
RUNNER=cwl-runner
18
18
PLATFORM=$( uname -s)
19
19
COVERAGE=" python"
20
+ EXTRA=" "
20
21
21
22
while [[ -n " $1 " ]]
22
23
do
@@ -70,7 +71,7 @@ runtest() {
70
71
(cd $DRAFT
71
72
cwltest --tool " $1 " \
72
73
--test=conformance_test_${DRAFT} .yaml ${TEST_N} \
73
- ${TEST_L} ${ONLY_TOOLS} ${JUNIT_XML} --basedir ${DRAFT}
74
+ ${TEST_L} ${ONLY_TOOLS} ${JUNIT_XML} --basedir ${DRAFT} -- ${EXTRA}
74
75
)
75
76
checkexit
76
77
}
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ $graph:
42
42
maintenance release of the CWL CommandLineTool specification.
43
43
Version 1.1 introduces the followings additions:
44
44
45
- *
45
+ * Addition of `stdin` type shortcut for `CommandInputParamater`s.
46
46
47
47
## Introduction to v1.0
48
48
@@ -388,6 +388,7 @@ $graph:
388
388
type :
389
389
- " null"
390
390
- CWLType
391
+ - stdin
391
392
- stdout
392
393
- stderr
393
394
- CommandOutputRecordSchema
@@ -409,6 +410,31 @@ $graph:
409
410
doc : |
410
411
Specify valid types of data that may be assigned to this parameter.
411
412
413
+ - name : stdin
414
+ type : enum
415
+ symbols : [ "cwl:stdin" ]
416
+ docParent : " #CommandOutputParameter"
417
+ doc : |
418
+ Only valid as a `type` for a `CommandLineTool` input with no
419
+ `inputBinding` set. `stdin` must not be specified at the `CommandLineTool`
420
+ level.
421
+
422
+ The following
423
+ ```
424
+ inputs:
425
+ an_input_name:
426
+ type: stdin
427
+ ```
428
+ is equivalent to
429
+ ```
430
+ inputs:
431
+ an_input_name:
432
+ type: File
433
+ streamable: true
434
+
435
+ stdin: ${inputs.an_input_name.path}
436
+ ```
437
+
412
438
- name : stdout
413
439
type : enum
414
440
symbols : [ "cwl:stdout" ]
@@ -558,6 +584,7 @@ $graph:
558
584
" _container " : " @list"
559
585
- name : stdin
560
586
type : ["null", string, Expression]
587
+ jsonldPredicate : " https://w3id.org/cwl/cwl#stdin"
561
588
doc : |
562
589
A path to a file whose contents must be piped into the command's
563
590
standard input stream.
Original file line number Diff line number Diff line change 117
117
tool : v1.1.0-dev1/cat4-tool.cwl
118
118
doc : Test command execution in Docker with stdin and stdout redirection
119
119
120
+ - job : v1.1.0-dev1/cat-job.json
121
+ output :
122
+ output_txt :
123
+ class : File
124
+ checksum : sha1$47a013e660d408619d894b20806b1d5086aab03b
125
+ location : output.txt
126
+ size : 13
127
+ tool : v1.1.0-dev1/cat4b-tool.cwl
128
+ doc : Test command execution in Docker with stdin and stdout redirection
129
+ with stdin shortcut
130
+
120
131
- job : v1.1.0-dev1/empty.json
121
132
tool : v1.1.0-dev1/null-expression1-tool.cwl
122
133
output :
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments