Skip to main content

config_root_from

Function config_root_from 

Source
pub fn config_root_from(
    explicit: Option<&str>,
    xdg_config_home: Option<&str>,
    home: Option<&Path>,
) -> Option<PathBuf>
Expand description

Resolve the user-global config root from explicit/env inputs: $EVAL_MAGIC_CONFIG_DIR verbatim (empty disables the layer), else $XDG_CONFIG_HOME/eval-magic, else <home>/.config/eval-magic.