(session: &AgentSession)
| 10 | use std::sync::{Arc, MutexGuard}; |
| 11 | |
| 12 | pub(super) fn registry(session: &AgentSession) -> MutexGuard<'_, CommandRegistry> { |
| 13 | session |
| 14 | .command_registry |
| 15 | .lock() |
| 16 | .expect("command_registry lock poisoned") |
| 17 | } |
| 18 | |
| 19 | pub(super) fn register(session: &AgentSession, cmd: Arc<dyn SlashCommand>) { |
| 20 | registry(session).register(cmd); |
no test coverage detected