MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / load_config

Function load_config

src/config.rs:409–412  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

407/// If the configuration file does not exist, returns a default configuration
408/// with `root_dir` set to the given project root.
409pub 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.

Calls 2

get_config_pathFunction · 0.85
load_config_from_pathFunction · 0.85