(output: &str)
| 501 | } |
| 502 | |
| 503 | fn parse_config_get_output(output: &str) -> Result<Value, Box<dyn Error>> { |
| 504 | let trimmed = output.trim(); |
| 505 | if trimmed.is_empty() { |
| 506 | return Ok(Value::Null); |
| 507 | } |
| 508 | match serde_json::from_str::<Value>(trimmed) { |
| 509 | Ok(value) => Ok(value), |
| 510 | Err(_) => Ok(Value::String(trimmed.to_string())), |
| 511 | } |
| 512 | } |
| 513 | |
| 514 | fn openclaw_config_set_json<R: OpenclawRunner>( |
| 515 | runner: &mut R, |
no outgoing calls
no test coverage detected