Skip to main content

resolve_config_store_path

Function resolve_config_store_path 

Source
pub fn resolve_config_store_path(
    explicit_path: Option<&Path>,
    xdg_config_home: Option<&str>,
    home: Option<&str>,
    appdata: Option<&str>,
    is_windows: bool,
) -> ConfigPathResolution
Expand description

Resolve which path the TOML config store should use: an explicit --config path if one was provided, otherwise the platform-default bhtune.toml location from config_path_from. Explicit paths must already exist; an auto-discovered missing file is acceptable and can be created on first save.