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

Function scalar_to_string

src/openclaw_cli.rs:479–486  ·  view source on GitHub ↗
(value: &Value)

Source from the content-addressed store, hash-verified

477}
478
479fn scalar_to_string(value: &Value) -> Option<String> {
480 match value {
481 Value::String(v) => Some(v.clone()),
482 Value::Number(v) => Some(v.to_string()),
483 Value::Bool(v) => Some(v.to_string()),
484 _ => None,
485 }
486}
487
488fn openclaw_config_get_json_at_path<R: OpenclawRunner>(
489 runner: &mut R,

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected