(self, os: &Os, session: &mut ChatSession)
| 69 | |
| 70 | impl KnowledgeSubcommand { |
| 71 | pub async fn execute(self, os: &Os, session: &mut ChatSession) -> Result<ChatState, ChatError> { |
| 72 | if !Self::is_feature_enabled(os) { |
| 73 | Self::write_feature_disabled_message(session)?; |
| 74 | return Ok(Self::default_chat_state()); |
| 75 | } |
| 76 | |
| 77 | let result = self.execute_operation(os, session).await; |
| 78 | |
| 79 | Self::write_operation_result(session, result)?; |
| 80 | |
| 81 | Ok(Self::default_chat_state()) |
| 82 | } |
| 83 | |
| 84 | fn is_feature_enabled(os: &Os) -> bool { |
| 85 | ExperimentManager::is_enabled(os, ExperimentName::Knowledge) |
nothing calls this directly
no test coverage detected