Skip to content

Commit

Permalink
Add eval output type (nextflow-io#4493)
Browse files Browse the repository at this point in the history
This PR introduces the output `eval` type that allows the definition of
a script expression that needs to be computed in the script context to evaluate
the output value to be emitted. An example would be:

```
process someTask {
  output:
  eval 'bash --version'
  '''
  some-command --here
  '''
}
```

Signed-off-by: Paolo Di Tommaso <paolo.ditommaso@gmail.com>
Signed-off-by: Ben Sherman <bentshermann@gmail.com>
Co-authored-by: Ben Sherman <bentshermann@gmail.com>
Co-authored-by: Dr Marco Claudio De La Pierre <marco.delapierre@gmail.com>
  • Loading branch information
3 people authored and nschan committed Apr 3, 2024
1 parent c17a6ab commit 6377039
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions docs/process.md
Original file line number Diff line number Diff line change
Expand Up @@ -1068,6 +1068,9 @@ The `stdout` qualifier allows you to output the `stdout` of the executed process
```

<<<<<<< HEAD
<<<<<<< HEAD
=======
>>>>>>> df978113c (Add eval output type (#4493))
(process-out-eval)=

### Output type `eval`
Expand All @@ -1085,8 +1088,19 @@ Only one-line Bash commands are supported. You can use a semi-colon `;` to speci

If the command fails, the task will also fail. In Bash, you can append `|| true` to a command to suppress any command failure.

<<<<<<< HEAD
=======
>>>>>>> 21ea0ed2a (Update documentation (#4700) [ci skip])
=======
(process-set)=

### Output type `set`

:::{deprecated} 19.08.1-edge
Use `tuple` instead.
:::

>>>>>>> df978113c (Add eval output type (#4493))
(process-out-tuple)=

### Output type `tuple`
Expand Down

0 comments on commit 6377039

Please sign in to comment.