Skip to main content

Module settings

Module settings 

Source
Expand description

Settings and configuration utilities.

This module provides functionality to read settings from $HOME/.omni-dev/settings.json and use them as a fallback for environment variables.

Structs§

Settings
Settings loaded from $HOME/.omni-dev/settings.json.
SettingsEnv
An EnvSource that reads the real process environment first and falls back to the env map in $HOME/.omni-dev/settings.json — the value form of get_env_var.

Functions§

get_env_var
Returns an environment variable with fallback to settings.
get_env_vars
Tries multiple environment variables with fallback to settings.