Skip to main content

load_config_for_root

Function load_config_for_root 

Source
pub fn load_config_for_root(root: &Path) -> Result<ResolvedConfig>
Expand description

Resolve a workspace’s effective config from its root directory (SPEC-0014 R4).

Resolves <root>/.ctx/config.toml (or the legacy <root>/config/ctx.toml) and merges global config defaults underneath it — mirroring the Workspace branch of load_config_for_cli but anchored at an explicit root instead of the process working directory. Relative store paths in the resolved config are re-rooted under root so each workspace addresses its own store.