Register a new command
(&mut self, command: Command)
| 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> { |
no test coverage detected