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

Method new

crates/opencode-tui/src/command.rs:112–119  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

110
111impl CommandRegistry {
112 pub fn new() -> Self {
113 let mut registry = Self {
114 commands: HashMap::new(),
115 by_category: HashMap::new(),
116 };
117 registry.register_all();
118 registry
119 }
120
121 fn register(&mut self, cmd: SlashCommand) {
122 let name = cmd.name.clone();

Callers

nothing calls this directly

Calls 2

newFunction · 0.85
register_allMethod · 0.80

Tested by

no test coverage detected