Environment

Returns all environment variables as a vector of EnvVariable records (fields: name, value). Use to inspect or forward the full environment.

pub fn env_variables() -> vector < EnvVariable >
pub fn env_variable(name: text) -> text

Returns the value of the environment variable name, or null if it is not set. Use to read configuration from the shell environment.

Functions for interacting with the host operating system. Returns the command-line arguments passed to the program. The first element is typically the program name.

pub fn arguments() -> vector < text >
pub fn directory(v:  & text = "") -> text

Returns the current working directory, optionally with v appended as a subpath. Use to construct absolute paths relative to where the program was launched.

pub fn user_directory(v:  & text = "") -> text

Returns the current user's home directory, optionally with v appended. Use for storing user-specific data or configuration.

pub fn program_directory(v:  & text = "") -> text

Returns the directory containing the running executable, optionally with v appended. Use to locate assets bundled alongside the program.