Loads the configuration from disk. If the configuration file does not exist, returns a default configuration with `root_dir` set to the given project root.
(project_root: &Path)
| 407 | /// If the configuration file does not exist, returns a default configuration |
| 408 | /// with `root_dir` set to the given project root. |
| 409 | pub fn load_config(project_root: &Path) -> Result<TraceDecayConfig> { |
| 410 | let config_path = get_config_path(project_root); |
| 411 | load_config_from_path(project_root, &config_path) |
| 412 | } |
| 413 | |
| 414 | /// Loads configuration from an explicit config path while preserving the |
| 415 | /// project root used for default config values. |