Skip to content

Commit 4eee1b6

Browse files
docs: Add admonition to inputs and index words (#6461) [ci skip]
Signed-off-by: Christopher Hakkaart <chris.hakkaart@seqera.io> Signed-off-by: Chris Hakkaart <chris.hakkaart@seqera.io>
1 parent 1ca327c commit 4eee1b6

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

docs/process.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -483,6 +483,8 @@ path x, name: 'my-dir/file.txt'
483483
In this case, `x.name` returns the file name with the parent directory (e.g. `my-dir/file.txt`), whereas normally it would return the file name (e.g. `file.txt`). You can use `x.fileName.name` to get the file name.
484484
:::
485485

486+
(process-multiple-input-files)=
487+
486488
### Multiple input files
487489

488490
A `path` input can also accept a collection of files instead of a single value. In this case, the input variable will be a list.
@@ -514,7 +516,7 @@ seq1 seq2 seq3
514516
...
515517
```
516518

517-
The target input file name may contain the `*` and `?` wildcards, which can be used to control the name of staged files. The following table shows how the wildcards are replaced depending on the cardinality of the received input collection.
519+
The target input file name may contain the {index}`*` and {index}`?` wildcards, which can be used to control the name of staged files. The following table shows how the {index}`wildcards` are replaced depending on the cardinality of the received input collection.
518520

519521
| Arity | Name pattern | Staged file names |
520522
| ----------- | ------------ | ------------------------------------------------------------------------------------------------------- |

docs/reference/process.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,10 @@ The following functions are available in the `output:` and `topic:` sections of
152152

153153
: Declare a file input. The received value should be a file or collection of files and will be staged into the task directory.
154154

155+
: :::{tip}
156+
See {ref}`process-multiple-input-files` for more information about accepting collections of files.
157+
:::
158+
155159
: The argument can be an identifier or string. If an identifier, the received value will be made available to the process body as a variable. If a string, the received value will be staged into the task directory under the given alias.
156160

157161
: Available options:

0 commit comments

Comments
 (0)