Try to load an existing onboarding configuration from the config directory. Returns `None` if no previous config exists or it can't be read.
()
| 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. |
| 40 | fn 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. |
| 47 | fn load_existing_config_from_vfs(config_dir: &VfsPath) -> Option<ExistingConfig> { |
no test coverage detected