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

Method get_timestamps

crates/opencode-tui/src/context/app_context.rs:392–398  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

390 }
391
392 fn get_timestamps(&self) -> bool {
393 match self.values.get("timestamps") {
394 Some(Value::String(value)) if value.eq_ignore_ascii_case("show") => true,
395 Some(Value::Bool(value)) => *value,
396 _ => false,
397 }
398 }
399
400 fn set_timestamps(&mut self, show: bool) {
401 let value = if show { "show" } else { "hide" };

Callers 1

newMethod · 0.80

Calls 1

getMethod · 0.45

Tested by

no test coverage detected