Skogsra.Core (Skogsrå v2.5.3)

Copy Markdown View Source

This module defines the core API for Skogsra.

Summary

Functions

Gets the value of a given env.

Gets the value of a given env. Fails on error.

Puts a new value for an env.

Reloads an env variable.

Functions

get_env(env)

@spec get_env(Skogsra.Env.t()) :: {:ok, term()} | {:error, binary()}

Gets the value of a given env.

get_env!(env)

@spec get_env!(Skogsra.Env.t()) :: term() | no_return()

Gets the value of a given env. Fails on error.

put_env(env, value)

@spec put_env(Skogsra.Env.t(), term()) :: :ok | {:error, binary()}

Puts a new value for an env.

reload_env(env)

@spec reload_env(Skogsra.Env.t()) :: {:ok, term()} | {:error, binary()}

Reloads an env variable.