Skip to main content

load_config

Function load_config 

Source
pub fn load_config(
    explicit_path: Option<&Path>,
) -> Result<AppConfig, ConfigError>
Expand description

Load config with first-match priority:

  1. Explicit path (--config)
  2. AGENT_SIM_CONFIG env var
  3. ./agent-sim.toml in cwd
  4. Empty defaults