find_config_paths

Function find_config_paths 

Source
pub fn find_config_paths() -> Vec<PathBuf>
Expand description

Find all configuration files available to be parsed.

Configuration files are detected in the following order:

  1. ${PROJECT_ROOT}/scilo.toml
  2. ${PROJECT_ROOT}/.config/scilo/config.toml
  3. config_dir()/scilo/config.toml

These configurations are returned in order of priority. The first element is the highest priority, so options that are defined in the first configuration file will overrule the same option in the last file.