Skip to content

Commit

Permalink
Suggestions for syntax page
Browse files Browse the repository at this point in the history
  • Loading branch information
christopher-hakkaart committed Oct 9, 2024
1 parent 3d29edb commit 597e06e
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions docs/reference/syntax.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,24 @@ nextflow.preview.topic = true

An include declaration consists of an *include source* and one or more *include clauses*:

The include source should be a string literal and should refer to either a local path (e.g. `./module.nf`) or a plugin (e.g. `plugin/nf-hello`):

```groovy
include { foo ; bar as baz } from './some/module'
include { foo } from './some/module'
```

The include source should be a string literal and should refer to either a local path (e.g. `./module.nf`) or a plugin (e.g. `plugin/nf-hello`).
Each include clause should specify a name, and may also specify an *alias*:

Each include clause should specify a name, and may also specify an *alias*. In the example above, `bar` is included under the alias `baz`.
```groovy
include { bar as baz } from './some/module'
```

Include clauses may include multiple names:

```groovy
// together
include { foo ; bar as baz } from './some/module'
```

Include clauses can be separated by newlines or semi-colons, or they can be specified as separate includes:

Expand Down

0 comments on commit 597e06e

Please sign in to comment.