load_config

Function load_config 

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

Loads configuration with XDG inheritance.

Load order (later overrides earlier):

  1. /etc/open-sesame/config.toml (system defaults)
  2. ~/.config/open-sesame/config.toml (user config)
  3. ~/.config/open-sesame/config.d/*.toml (user overrides, alphabetical)