Skip to content

Commit 8de0b2b

Browse files
committed
sync remaining updates made to v1.0
1 parent 8ab5eb9 commit 8de0b2b

File tree

7 files changed

+72
-12
lines changed

7 files changed

+72
-12
lines changed

v1.1.0-dev1/CommandLineTool.yml

-1
Original file line numberDiff line numberDiff line change
@@ -747,7 +747,6 @@ $graph:
747747
- name: package
748748
type: string
749749
doc: "The common name of the software to be configured."
750-
jsonldPredicate: "@id"
751750
- name: version
752751
type: string[]?
753752
doc: "The (optional) version of the software to configured."

v1.1.0-dev1/Process.yml

-1
Original file line numberDiff line numberDiff line change
@@ -595,7 +595,6 @@ $graph:
595595
doc: |
596596
Specify valid types of data that may be assigned to this parameter.
597597
598-
599598
- name: OutputParameter
600599
type: record
601600
extends: Parameter

v1.1.0-dev1/UserGuide.yml

+18-8
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@
183183
184184
The value of `position` is used to determine where parameter should
185185
appear on the command line. Positions are relative to one another, not
186-
abosolute. As a result, positions do not have to be sequential, three
186+
absolute. As a result, positions do not have to be sequential, three
187187
parameters with positions `[1, 3, 5]` will result in the same command
188188
line as `[1, 2, 3]`. More than one parameter can have the same position
189189
(ties are broken using the parameter name), and the position field itself
@@ -290,8 +290,8 @@
290290
- |
291291
## Parameter references
292292
293-
In a previous example, we used extracted a file using the "tar" program.
294-
However, that example was very limited becuase it assumed that the file
293+
In a previous example, we extracted a file using the "tar" program.
294+
However, that example was very limited because it assumed that the file
295295
we were interested in was called "hello.txt". In this example, you will
296296
see how to reference the value of input parameters dynamically from other
297297
fields.
@@ -356,7 +356,7 @@
356356
containers are also purposefully isolated from the host system, so in
357357
order to run a tool inside a Docker container there is additional work to
358358
ensure that input files are available inside the container and output
359-
files can be recovered from the contianer. CWL can perform this work
359+
files can be recovered from the container. CWL can perform this work
360360
automatically, allowing you to use Docker to simplify your software
361361
management while avoiding the complexity of invoking and managing Docker
362362
containers.
@@ -466,7 +466,7 @@
466466
tool is actually executed. The `$(runtime.outdir)` parameter is the path
467467
to the designated output directory. Other parameters include
468468
`$(runtime.tmpdir)`, `$(runtime.ram)`, `$(runtime.cores)`,
469-
`$(runtime.ram)`, `$(runtime.outdirSize)`, and `$(runtime.tmpdirSize)`. See
469+
`$(runtime.outdirSize)`, and `$(runtime.tmpdirSize)`. See
470470
the [Runtime Environment](CommandLineTool.html#Runtime_environment)
471471
section of the CWL specification for details.
472472
@@ -522,7 +522,7 @@
522522
- |
523523
```
524524
525-
*array-outpust-job.yml*
525+
*array-outputs-job.yml*
526526
```
527527
- $include: examples/array-outputs-job.yml
528528
- |
@@ -662,6 +662,16 @@
662662
- |
663663
```
664664
665+
As this tool does not require any `inputs` we can run it with an (almost) empty job file:
666+
667+
*empty.yml*
668+
```
669+
{}
670+
|
671+
```
672+
673+
We can then run `expression.cwl`:
674+
665675
```
666676
$ cwl-runner expression.cwl empty.yml
667677
[job 140000594593168] /home/example$ echo -A 2 -B baz -C 10 9 8 7 6 5 4 3 2 1
@@ -796,7 +806,7 @@
796806
class: Workflow
797807
```
798808
799-
The 'cwlVersion` field indicates the version of the CWL spec used by the
809+
The `cwlVersion` field indicates the version of the CWL spec used by the
800810
document. The `class` field indicates this document describes a workflow.
801811
802812
@@ -820,7 +830,7 @@
820830
821831
The `outputs` section describes the outputs of the workflow. This is a
822832
list of output parameters where each parameter consists of an identifier
823-
and a data type. The `source` connects the output parameter `classfile`
833+
and a data type. The `outputSource` connects the output parameter `classfile`
824834
of the `compile` step to the workflow output parameter `classout`.
825835
826836
```

v1.1.0-dev1/concepts.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ preprocessing steps described in the
8989
[Semantic Annotations for Linked Avro Data (SALAD) Specification](SchemaSalad.html).
9090
An implementation may formally validate the structure of a CWL document using
9191
SALAD schemas located at
92-
https://github.com/common-workflow-language/common-workflow-language/tree/master/draft-4
92+
https://github.com/common-workflow-language/common-workflow-language/tree/master/v1.1.0-dev1
9393

9494
## Identifiers
9595

v1.1.0-dev1/examples/arguments.cwl

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
cwlVersion: v1.1.0-dev1
22
class: CommandLineTool
33
label: Example trivial wrapper for Java 7 compiler
4-
baseCommand: javac
54
hints:
65
DockerRequirement:
76
dockerPull: java:7

v1.1.0-dev1/examples/empty.json

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{}
+52
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
cwlVersion: v1.0
2+
class: Workflow
3+
4+
inputs: []
5+
6+
outputs:
7+
classout:
8+
type: File
9+
outputSource: compile/classout
10+
11+
requirements:
12+
- class: SubworkflowFeatureRequirement
13+
14+
steps:
15+
compile:
16+
run: 1st-workflow.cwl
17+
in:
18+
inp:
19+
source: create-tar/tar
20+
ex:
21+
default: "Hello.java"
22+
out: [classout]
23+
24+
create-tar:
25+
requirements:
26+
- class: InitialWorkDirRequirement
27+
listing:
28+
- entryname: Hello.java
29+
entry: |
30+
public class Hello {
31+
public static void main(String[] argv) {
32+
System.out.println("Hello from Java");
33+
}
34+
}
35+
in: []
36+
out: [tar]
37+
run:
38+
class: CommandLineTool
39+
requirements:
40+
- class: ShellCommandRequirement
41+
arguments:
42+
- shellQuote: false
43+
valueFrom: |
44+
date
45+
tar cf hello.tar Hello.java
46+
date
47+
inputs: []
48+
outputs:
49+
tar:
50+
type: File
51+
outputBinding:
52+
glob: "hello.tar"

0 commit comments

Comments
 (0)