Skip to content

Commit 70b85c0

Browse files
committed
add wildcard example
1 parent 8902743 commit 70b85c0

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

src/faq.md

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,25 @@ those Docker format containers using the Singularity engine. Directly
448448
specifying a Singularity format container is not part of the CWL standards.
449449

450450
## How outputBinding.glob works
451-
The `outputBinding` section describes how to set the value of each output parameter. The `glob` field is used to return all file paths that match a specific pattern. The value of the glob field is the `output directory` Wildcard characters can be used in the filenames when searching for files. The wildcard characters can either be an asterisk `*` or a question mark `?`.
451+
The `outputBinding` section describes how to set the value of each output parameter. The `glob` field is used to return all file paths that match a specific pattern. The value of the glob field is the `output directory` Wildcard characters can be used in the filenames when searching for files. The wildcard characters can either be an asterisk `*` or a question mark `?`.
452+
453+
```cwl
454+
outputs:
455+
example_out:
456+
type: File
457+
outputBinding:
458+
glob: hello.txt
459+
```
460+
461+
The glob field in the above output section can also be written with the `*` wildcard character as
462+
463+
```cwl
464+
outputs:
465+
example_out:
466+
type: File
467+
outputBinding:
468+
glob: '*.txt'
469+
```
452470

453471
## Debug JavaScript Expressions
454472

0 commit comments

Comments
 (0)