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

Function try_read_openclaw_config_path

src/main.rs:117–124  ·  view source on GitHub ↗
(clawshell_config_file: &Path)

Source from the content-addressed store, hash-verified

115}
116
117fn try_read_openclaw_config_path(clawshell_config_file: &Path) -> Option<PathBuf> {
118 let config_content = std::fs::read_to_string(clawshell_config_file).ok()?;
119 let config_json = serde_json::from_str::<serde_json::Value>(&config_content).ok()?;
120 config_json
121 .get("openclaw_config_path")
122 .and_then(|v| v.as_str())
123 .map(PathBuf::from)
124}
125
126#[derive(Debug, Clone)]
127struct WrittenOpenclawSkill {

Callers 1

cmd_uninstallFunction · 0.85

Calls 1

as_strMethod · 0.80

Tested by

no test coverage detected