Garden 🌻

__shell.gdn::get_env()

Get the value of an environment variable.

Returns Some(value) if the environment variable is set, or None if it is not set.

Example
import "__shell.gdn" as shell
shell::get_env("HOME") // Some("/home/user")
shell::get_env("NO_SUCH_VAR") // None
Source Code
public fun get_env(name: String): Option<String> {
  __BUILT_IN_IMPLEMENTATION
}