@@ -11,16 +11,18 @@ When a tool runs under CWL, the starting working directory is the
11
11
designated output directory. The underlying tool or script must record
12
12
its results in the form of files created in the output directory. The
13
13
output parameters returned by the CWL tool are either the output files
14
- themselves, or come from examining the content of those files.
14
+ themselves, or the result of examining the content of those files.
15
15
16
16
The following example demonstrates how to return a file that has been extracted from a tar file.
17
17
18
18
``` {tip}
19
19
Passing mandatory arguments to the `baseCommand`
20
20
21
- In previous examples, the `baseCommand` was just a string, with any arguments passed as CWL inputs.
22
- Instead of a single string we can use an _array of strings_. The first element is the command to run, and
23
- any subsequent elements are mandatory command line arguments
21
+ In previous examples, the `baseCommand` was just a string, with any arguments
22
+ passed as CWL inputs. Instead of a single string, we can use an _array of
23
+ strings_ as the value of `baseCommand`. The first element of the array is the
24
+ command to run, and any subsequent elements are mandatory command line
25
+ arguments
24
26
```
25
27
26
28
``` {literalinclude} /_includes/cwl/outputs/tar.cwl
@@ -59,8 +61,10 @@ outputs:
59
61
glob: hello.txt
60
62
```
61
63
62
- The [ ` glob ` ] ( https://w3id.org/cwl/CommandLineTool.html#CommandOutputBinding ) field consists of the name of a file in the output directory.
63
- If you don't know name of the file in advance, you can use a wildcard pattern like ` glob: '*.txt' ` .
64
+ The [ ` glob ` ] ( https://w3id.org/cwl/CommandLineTool.html#CommandOutputBinding )
65
+ field consists of the pattern to match file names in the output directory.
66
+ This can simply be the file's exact name. But if you don't know the name of the
67
+ file in advance, you can use a wildcard pattern like ` glob: '*.txt' ` .
64
68
65
69
## Capturing Standard Output
66
70
0 commit comments