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

Method get_bool

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

Source from the content-addressed store, hash-verified

383 }
384
385 fn get_bool(&self, key: &str, default: bool) -> bool {
386 match self.values.get(key) {
387 Some(Value::Bool(flag)) => *flag,
388 _ => default,
389 }
390 }
391
392 fn get_timestamps(&self) -> bool {
393 match self.values.get("timestamps") {

Callers 1

newMethod · 0.80

Calls 1

getMethod · 0.45

Tested by

no test coverage detected