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

Function parse_config_get_output

src/openclaw_cli.rs:503–512  ·  view source on GitHub ↗
(output: &str)

Source from the content-addressed store, hash-verified

501}
502
503fn 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
514fn openclaw_config_set_json<R: OpenclawRunner>(
515 runner: &mut R,

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected