MCPcopy Create free account
hub / github.com/aws/amazon-q-developer-cli / execute

Method execute

crates/chat-cli/src/cli/chat/cli/knowledge.rs:71–82  ·  view source on GitHub ↗
(self, os: &Os, session: &mut ChatSession)

Source from the content-addressed store, hash-verified

69
70impl 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)

Callers

nothing calls this directly

Calls 1

execute_operationMethod · 0.80

Tested by

no test coverage detected