diff --git a/modules/nextflow/src/main/groovy/nextflow/Nextflow.groovy b/modules/nextflow/src/main/groovy/nextflow/Nextflow.groovy index b114cb5d4d..e7dc15884c 100644 --- a/modules/nextflow/src/main/groovy/nextflow/Nextflow.groovy +++ b/modules/nextflow/src/main/groovy/nextflow/Nextflow.groovy @@ -61,6 +61,9 @@ class Nextflow { * Get the value of an environment variable from the launch environment. * * @param name + * The environment variable name to be referenced + * @return + * The value associate with the specified variable name or {@code null} if the variable does not exist. */ static String env(String name) { return SysEnv.get(name) diff --git a/modules/nextflow/src/main/groovy/nextflow/config/ConfigBase.groovy b/modules/nextflow/src/main/groovy/nextflow/config/ConfigBase.groovy index 0c6597f7b6..a97e23f19a 100644 --- a/modules/nextflow/src/main/groovy/nextflow/config/ConfigBase.groovy +++ b/modules/nextflow/src/main/groovy/nextflow/config/ConfigBase.groovy @@ -78,6 +78,9 @@ abstract class ConfigBase extends Script { * Get the value of an environment variable from the launch environment. * * @param name + * The environment variable name to be referenced + * @return + * The value associate with the specified variable name or {@code null} if the variable does not exist. */ String env(String name) { return SysEnv.get(name)