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

Method get_string

crates/opencode-tui/src/context/app_context.rs:412–417  ·  view source on GitHub ↗
(&self, key: &str, default: &str)

Source from the content-addressed store, hash-verified

410 }
411
412 fn get_string(&self, key: &str, default: &str) -> String {
413 match self.values.get(key) {
414 Some(Value::String(s)) => s.clone(),
415 _ => default.to_string(),
416 }
417 }
418
419 fn set_string(&mut self, key: &str, value: &str) {
420 self.values

Callers 1

newMethod · 0.80

Calls 2

getMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected