Skip to content

Commit 1d25aab

Browse files
committed
add wildcard example
1 parent f855cac commit 1d25aab

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
@@ -447,7 +447,25 @@ those Docker format containers using the Singularity engine. Directly
447447
specifying a Singularity format container is not part of the CWL standards.
448448

449449
## How outputBinding.glob works
450-
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 `?`.
450+
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+
452+
```cwl
453+
outputs:
454+
example_out:
455+
type: File
456+
outputBinding:
457+
glob: hello.txt
458+
```
459+
460+
The glob field in the above output section can also be written with the `*` wildcard character as
461+
462+
```cwl
463+
outputs:
464+
example_out:
465+
type: File
466+
outputBinding:
467+
glob: '*.txt'
468+
```
451469

452470
## Debug JavaScript expressions
453471

0 commit comments

Comments
 (0)