MCPcopy Create free account
hub / github.com/ChrisFeldmeier/OpenCodeRust / ensure_array

Function ensure_array

crates/opencode-plugin/src/subprocess/loader.rs:574–576  ·  view source on GitHub ↗
(map: &mut Map<String, Value>, key: &str)

Source from the content-addressed store, hash-verified

572}
573
574fn ensure_array(map: &mut Map<String, Value>, key: &str) {
575 ensure_default(map, key, Value::Array(Vec::new()));
576}
577
578fn seed_hook_output(event: HookEvent, output: &mut Map<String, Value>) {
579 match event {

Callers 1

seed_hook_outputFunction · 0.85

Calls 2

ensure_defaultFunction · 0.85
newFunction · 0.85

Tested by

no test coverage detected