Skogsrå v1.2.0 Skogsra.Core View Source

This module defines the core API for Skogsra.

Link to this section 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

Link to this section Functions

Link to this function

get_env(env) View Source
get_env(Skogsra.Env.t()) :: {:ok, term()} | {:error, term()}

Gets the value of a given env.

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

Link to this function

put_env(env, value) View Source
put_env(Skogsra.Env.t(), term()) :: :ok | {:error, term()}

Puts a new value for an env.

Link to this function

reload_env(env) View Source
reload_env(Skogsra.Env.t()) :: {:ok, term()} | {:error, term()}

Reloads an env variable.