From 593ddb5440515e4be4eca34714a713a99c43d117 Mon Sep 17 00:00:00 2001 From: Christopher Hakkaart Date: Thu, 9 Oct 2025 14:42:49 +1300 Subject: [PATCH 1/3] Add index to *, ?, and wildcards Signed-off-by: Christopher Hakkaart --- docs/process.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/process.md b/docs/process.md index 5b69119e16..86f1989439 100644 --- a/docs/process.md +++ b/docs/process.md @@ -514,7 +514,7 @@ seq1 seq2 seq3 ... ``` -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. +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. | Arity | Name pattern | Staged file names | | ----------- | ------------ | ------------------------------------------------------------------------------------------------------- | From e742379791f7ce3f4b7503fcb71ab1190a67a241 Mon Sep 17 00:00:00 2001 From: Christopher Hakkaart Date: Thu, 9 Oct 2025 14:54:39 +1300 Subject: [PATCH 2/3] Add tip Signed-off-by: Christopher Hakkaart --- docs/process.md | 2 ++ docs/reference/process.md | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/docs/process.md b/docs/process.md index 86f1989439..3c47b210c1 100644 --- a/docs/process.md +++ b/docs/process.md @@ -483,6 +483,8 @@ path x, name: 'my-dir/file.txt' 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. ::: +(process-multiple-input-files)= + ### Multiple input files 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. diff --git a/docs/reference/process.md b/docs/reference/process.md index 33953b2518..3355ec0b08 100644 --- a/docs/reference/process.md +++ b/docs/reference/process.md @@ -72,6 +72,10 @@ Additionally, the [directive values](#directives) for the given task can be acce : Declare a file input. The received value should be a file or collection of files and will be staged into the task directory. +: :::{tip} + See {ref}`process-multiple-input-files` for more information about accepting a collection of files instead of a single value. + ::: + : 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. : Available options: From b0bc74477ec31630f774a58272cb76f3700e95e3 Mon Sep 17 00:00:00 2001 From: Chris Hakkaart Date: Tue, 14 Oct 2025 10:56:42 +1300 Subject: [PATCH 3/3] Update docs/reference/process.md Signed-off-by: Chris Hakkaart --- docs/reference/process.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/reference/process.md b/docs/reference/process.md index 3355ec0b08..c0c95779c0 100644 --- a/docs/reference/process.md +++ b/docs/reference/process.md @@ -73,7 +73,7 @@ Additionally, the [directive values](#directives) for the given task can be acce : Declare a file input. The received value should be a file or collection of files and will be staged into the task directory. : :::{tip} - See {ref}`process-multiple-input-files` for more information about accepting a collection of files instead of a single value. + See {ref}`process-multiple-input-files` for more information about accepting collections of files. ::: : 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.