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

Method set_timestamps

crates/opencode-tui/src/context/app_context.rs:400–405  ·  view source on GitHub ↗
(&mut self, show: bool)

Source from the content-addressed store, hash-verified

398 }
399
400 fn set_timestamps(&mut self, show: bool) {
401 let value = if show { "show" } else { "hide" };
402 self.values
403 .insert("timestamps".to_string(), Value::String(value.to_string()));
404 self.persist();
405 }
406
407 fn set_bool(&mut self, key: &str, value: bool) {
408 self.values.insert(key.to_string(), Value::Bool(value));

Callers 1

toggle_timestampsMethod · 0.80

Calls 1

persistMethod · 0.45

Tested by

no test coverage detected