Skip to content

Commit

Permalink
Document examples of directives with only named args (#5755) [ci skip]
Browse files Browse the repository at this point in the history
Signed-off-by: Ben Sherman <[email protected]>
  • Loading branch information
bentsherman authored Feb 6, 2025
1 parent 67908e9 commit 8e1ddf3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/process.md
Original file line number Diff line number Diff line change
Expand Up @@ -1128,12 +1128,12 @@ The `emit` option can be used on a process output to define a name for the corre
process FOO {
output:
path 'hello.txt', emit: hello
path 'bye.txt', emit: bye
stdout emit: bye
script:
"""
echo "hello" > hello.txt
echo "bye" > bye.txt
echo "bye"
"""
}
Expand Down
3 changes: 3 additions & 0 deletions docs/reference/syntax.md
Original file line number Diff line number Diff line change
Expand Up @@ -795,6 +795,9 @@ printf 'Hello %s!\n', 'World'
// positional and named args
file 'hello.txt', checkIfExists: true
// named args
resourceLabels group: 'my-group', user: 'me'
```

If the last argument is a closure, it can be specified outside of the parentheses:
Expand Down

0 comments on commit 8e1ddf3

Please sign in to comment.