Skip to content

Commit f2a1f62

Browse files
authored
freshen example output
fix `glob` indention and give example of wildcard pattern
1 parent 26a8716 commit f2a1f62

File tree

1 file changed

+17
-10
lines changed

1 file changed

+17
-10
lines changed

_episodes/04-output.md

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -41,16 +41,23 @@ wrapper and the input object on the command line:
4141
```
4242
$ touch hello.txt && tar -cvf hello.tar hello.txt
4343
$ cwl-runner tar.cwl tar-job.yml
44-
[job 139868145165200] $ tar xf /home/example/hello.tar
45-
Final process status is success
44+
[job tar.cwl] /tmp/tmpqOeawQ$ tar \
45+
xf \
46+
/tmp/tmpGDk8Y1/stg80bbad20-494d-47af-8075-dffc32df03a3/hello.tar
47+
[job tar.cwl] completed success
4648
{
47-
"example_out": {
48-
"location": "hello.txt",
49-
"size": 13,
50-
"class": "File",
51-
"checksum": "sha1$47a013e660d408619d894b20806b1d5086aab03b"
52-
}
49+
"example_out": {
50+
"checksum": "sha1$da39a3ee5e6b4b0d3255bfef95601890afd80709",
51+
"basename": "hello.txt",
52+
"nameroot": "hello",
53+
"nameext": ".txt",
54+
"location": "file:///home/me/cwl/user_guide/hello.txt",
55+
"path": "/home/me/cwl/user_guide/hello.txt",
56+
"class": "File",
57+
"size": 0
58+
}
5359
}
60+
Final process status is success
5461
```
5562

5663
The field `outputBinding` describes how to to set the value of each
@@ -61,8 +68,8 @@ outputs:
6168
example_out:
6269
type: File
6370
outputBinding:
64-
glob: hello.txt
71+
glob: hello.txt
6572
```
6673

6774
The `glob` field consists of the name of a file in the output directory.
68-
If you don't know name of the file in advance, you can use a wildcard pattern.
75+
If you don't know name of the file in advance, you can use a wildcard pattern like `*.txt`.

0 commit comments

Comments
 (0)