Skip to content

Commit 84f22ab

Browse files
authored
Separate commands and output (#238)
* Separate commands and output * Use tool description, not tool wrapper
1 parent 9e94ce9 commit 84f22ab

11 files changed

+34
-16
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ or links to Markdown pages). For simple HTML links (e.g. `< href=>` or
2828
markdown external links) pull request reviewers must verify that links
2929
are still working after the change.
3030

31+
Use “tool description” not “tool wrapper” for describing the first argument
32+
given to the `cwl-runner` or `cwltool` commands.
33+
3134
### Code examples
3235

3336
To include code into a Markdown file you have two options. For external files use

src/topics/additional-arguments-and-parameters.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,15 @@ instead.
2121
:caption: "`arguments-job.yml`"
2222
```
2323

24-
Now create a sample Java file and invoke `cwl-runner` providing the tool wrapper
25-
and the input object on the command line:
24+
Next, create a sample Java file to use with the command-line tool.
2625

2726
```{code-block} console
2827
$ echo "public class Hello {}" > Hello.java
28+
```
29+
30+
And now invoke `cwl-runner` providing the tool description and the input object on the command line:
31+
32+
```{code-block} console
2933
$ cwl-runner arguments.cwl arguments-job.yml
3034
[job arguments.cwl] /tmp/tmpwYALo1$ docker \
3135
run \

src/topics/creating-files-at-runtime.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ which is YAML quoting syntax, and means that you are using a multiline string
5151
See the [YAML Guide](../topics/yaml-guide.md#maps) for more about the formatting.
5252
```
5353

54-
Now invoke `cwl-runner` with the tool wrapper and the input object on the
54+
Now invoke `cwl-runner` with the tool description and the input object on the
5555
command line:
5656

5757
```{code-block} console

src/topics/environment-variables.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ the tool using `EnvVarRequirement`.
1515
:caption: "`echo-job.yml`"
1616
```
1717

18-
Now invoke `cwl-runner` with the tool wrapper and the input object on the
18+
Now invoke `cwl-runner` with the tool description and the input object on the
1919
command line:
2020

2121
```{code-block} console

src/topics/file-formats.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ ___Note:___ To follow the example below, you need to download the example input
4949
wget https://github.com/common-workflow-language/user_guide/raw/main/_includes/cwl/16-file-formats/file-formats.bam
5050
```
5151

52-
Now invoke `cwl-runner` with the tool wrapper and the input object on the
52+
Now invoke `cwl-runner` with the tool description and the input object on the
5353
command line:
5454

5555
```{code-block} console

src/topics/inputs.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Create a file called inp-job.yml:
3535
Notice that "example_file", as a `File` type, must be provided as an
3636
object with the fields `class: File` and `path`.
3737

38-
Next, create a whale.txt using [touch] by typing `touch whale.txt` on the command line and then invoke `cwl-runner` with the tool wrapper and the input object on the command line, using the command `cwl-runner inp.cwl inp-job.yml`. The following boxed text describes these two commands and the expected output from the command line:
38+
Next, create a whale.txt using [touch] by typing `touch whale.txt` on the command line and then invoke `cwl-runner` with the tool description and the input object on the command line, using the command `cwl-runner inp.cwl inp-job.yml`. The following boxed text describes these two commands and the expected output from the command line:
3939

4040
```{code-block} console
4141
$ touch whale.txt
@@ -157,7 +157,7 @@ the type name to indicate that input parameter is array of that type.
157157
:name: array-inputs-job.yml
158158
```
159159

160-
Now invoke `cwl-runner` providing the tool wrapper and the input object
160+
Now invoke `cwl-runner` providing the tool description and the input object
161161
on the command line:
162162

163163
```{code-block} console

src/topics/outputs.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,16 @@ any subsequent elements are mandatory command line arguments
3535
:name: tar-job.yml
3636
```
3737

38-
Next, create a tar file for the example and invoke `cwl-runner` with the tool
39-
wrapper and the input object on the command line:
38+
Next, create a tar file for the example.
4039

4140
```{code-block} console
4241
$ touch hello.txt && tar -cvf hello.tar hello.txt
42+
hello.txt
43+
```
44+
45+
And now invoke `cwl-runner` with the tool description and the input object on the command line:
46+
47+
```{code-block} console
4348
$ cwl-runner tar.cwl tar-job.yml
4449
[job tar.cwl] /tmp/tmpqOeawQ$ tar \
4550
--extract --file \
@@ -89,7 +94,7 @@ stdout` on the corresponding output parameter.
8994
:caption: "`echo-job.yml`"
9095
```
9196

92-
Now invoke `cwl-runner` providing the tool wrapper and the input object
97+
Now invoke `cwl-runner` providing the tool description and the input object
9398
on the command line:
9499

95100
```{code-block} console
@@ -126,7 +131,7 @@ You can also capture multiple output files into an array of files using `glob`.
126131
:name: array-outputs-job.yml
127132
```
128133

129-
Now invoke `cwl-runner` providing the tool wrapper and the input object
134+
Now invoke `cwl-runner` providing the tool description and the input object
130135
on the command line:
131136

132137
```{code-block} console

src/topics/parameter-references.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ the file to extract.
2222
:name: tar-param-job.yml
2323
```
2424

25-
Create your input files and invoke `cwl-runner` with the tool wrapper and the
25+
Create your input files and invoke `cwl-runner` with the tool description and the
2626
input object on the command line:
2727

2828
```{code-block} console

src/topics/staging-input-files.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ input file from its leading directory path.
1717
:caption: "`arguments-job.yml`"
1818
```
1919

20-
Now invoke `cwl-runner` with the tool wrapper and the input object on the
20+
Now invoke `cwl-runner` with the tool description and the input object on the
2121
command line:
2222

2323
```{code-block} console

src/topics/using-containers.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ the name of the container image (you can even specify the tag, which is good ide
4949
best practises when using containers for reproducible research). In this case we have
5050
used a container called `node:slim`.
5151

52-
Provide a "hello.js" and invoke `cwl-runner` providing the tool wrapper and the
52+
Provide a "hello.js" and invoke `cwl-runner` providing the tool description and the
5353
input object on the command line:
5454

5555
```{code-block} console

0 commit comments

Comments
 (0)