From 3ca75fd75a01994c5154a190704ca90aa0434962 Mon Sep 17 00:00:00 2001 From: Paolo Di Tommaso Date: Thu, 14 Nov 2024 19:40:37 +0100 Subject: [PATCH] Improve docs [ci skip] Signed-off-by: Paolo Di Tommaso --- modules/nextflow/src/main/groovy/nextflow/Nextflow.groovy | 3 +++ .../nextflow/src/main/groovy/nextflow/config/ConfigBase.groovy | 3 +++ 2 files changed, 6 insertions(+) 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)