MCPcopy Create free account
hub / github.com/clawshell/clawshell / load_existing_config

Function load_existing_config

src/onboard/interactive.rs:40–44  ·  view source on GitHub ↗

Try to load an existing onboarding configuration from the config directory. Returns `None` if no previous config exists or it can't be read.

()

Source from the content-addressed store, hash-verified

38/// Try to load an existing onboarding configuration from the config directory.
39/// Returns `None` if no previous config exists or it can't be read.
40fn load_existing_config() -> Option<ExistingConfig> {
41 let root = crate::process::physical_root();
42 let config_dir = root.join("etc/clawshell").ok()?;
43 load_existing_config_from_vfs(&config_dir)
44}
45
46/// VFS implementation for loading existing config from a directory.
47fn load_existing_config_from_vfs(config_dir: &VfsPath) -> Option<ExistingConfig> {

Callers 1

Calls 2

physical_rootFunction · 0.85

Tested by

no test coverage detected