MCPcopy Index your code
hub / github.com/ChrisFeldmeier/OpenCodeRust / register

Method register

crates/opencode-command/src/lib.rs:104–106  ·  view source on GitHub ↗

Register a new command

(&mut self, command: Command)

Source from the content-addressed store, hash-verified

102
103 /// Register a new command
104 pub fn register(&mut self, command: Command) {
105 self.commands.insert(command.name.clone(), command);
106 }
107
108 /// Get a command by name
109 pub fn get(&self, name: &str) -> Option<&Command> {

Callers 2

load_from_directoryMethod · 0.45

Calls 1

cloneMethod · 0.45

Tested by

no test coverage detected