How do I include all processes and parameters from a module?

I am splitting my workflow into modules. I’d like to be able to include the all of the processes, workflows, etc from a module without having to name them individually. I’m imagining something like include {*} from ./module.nf, akin to Python’s import * from [library].

I’d also like to know how to include variables defined in a module. For example, if a module setup.nf declares params.resources = "resources", I’d like to be able to access that value of params.resources from within a module with something like include {params.resources} from ./setup.nf. I know that’s improper syntax, it’s just for illustrative purposes.

Thank you!

I don’t think this is possible, @bskubi. Sorry for that. Feel free to open an issue in the GitHub repo requesting such features if they’re important to you.

There have been discussions about include { * } and it was decided not to support this, as it’s preferable to have explicit includes.