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

Method print

crates/opencode-tui/src/context/keybind.rs:239–244  ·  view source on GitHub ↗
(&self, name: &str)

Source from the content-addressed store, hash-verified

237 }
238
239 pub fn print(&self, name: &str) -> String {
240 self.bindings
241 .get(name)
242 .map(|kb| kb.to_string())
243 .unwrap_or_else(|| "?".to_string())
244 }
245
246 pub fn all(&self) -> &HashMap<String, Keybind> {
247 &self.bindings

Callers 2

hint_lineMethod · 0.80

Calls 1

getMethod · 0.45

Tested by

no test coverage detected