MCPcopy Create free account
hub / github.com/AI45Lab/Code / unregister

Method unregister

core/src/commands.rs:149–151  ·  view source on GitHub ↗

Unregister a command by name.

(&mut self, name: &str)

Source from the content-addressed store, hash-verified

147
148 /// Unregister a command by name.
149 pub fn unregister(&mut self, name: &str) -> Option<Arc<dyn SlashCommand>> {
150 self.commands.remove(name)
151 }
152
153 /// Check if input is a slash command.
154 pub fn is_command(input: &str) -> bool {

Callers

nothing calls this directly

Calls 1

removeMethod · 0.80

Tested by

no test coverage detected