Skip to main content

load_config

Function load_config 

Source
pub fn load_config() -> Result<Config, ConfigError>
Expand description

Loads the merged configuration from the process environment, config.json, and the OS keyring.

This function handles the precedence of configuration sources:

  1. Environment variables (highest priority).
  2. config.json file.
  3. OS Keyring (for secrets).

ยงErrors

Returns an error if API_BASE_URL is not set or if there are issues reading token files.