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

Method set_string

crates/opencode-tui/src/context/app_context.rs:419–423  ·  view source on GitHub ↗
(&mut self, key: &str, value: &str)

Source from the content-addressed store, hash-verified

417 }
418
419 fn set_string(&mut self, key: &str, value: &str) {
420 self.values
421 .insert(key.to_string(), Value::String(value.to_string()));
422 self.persist();
423 }
424
425 fn persist(&self) {
426 let Some(path) = &self.path else {

Callers 1

Calls 1

persistMethod · 0.45

Tested by

no test coverage detected