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

Function load_sync_config

src/config.rs:292–297  ·  view source on GitHub ↗

Loads the `[sync]` config for a project (falling back to defaults on any load error) and applies `TRACEDECAY_SYNC_*` environment overrides.

(project_root: &Path)

Source from the content-addressed store, hash-verified

290/// Loads the `[sync]` config for a project (falling back to defaults on any
291/// load error) and applies `TRACEDECAY_SYNC_*` environment overrides.
292pub fn load_sync_config(project_root: &Path) -> SyncConfig {
293 load_config(project_root)
294 .map(|config| config.sync)
295 .unwrap_or_default()
296 .with_env_overrides()
297}
298
299impl Default for TraceDecayConfig {
300 fn default() -> Self {

Callers 1

new_with_dbsMethod · 0.85

Calls 2

load_configFunction · 0.85
with_env_overridesMethod · 0.80

Tested by

no test coverage detected