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

Method execute

crates/chat-cli/src/cli/mcp.rs:74–85  ·  view source on GitHub ↗
(self, os: &mut Os, output: &mut impl Write)

Source from the content-addressed store, hash-verified

72
73impl McpSubcommand {
74 pub async fn execute(self, os: &mut Os, output: &mut impl Write) -> Result<ExitCode> {
75 match self {
76 Self::Add(args) => args.execute(os, output).await?,
77 Self::Remove(args) => args.execute(os, output).await?,
78 Self::List(args) => args.execute(os, output).await?,
79 Self::Import(args) => args.execute(os, output).await?,
80 Self::Status(args) => args.execute(os, output).await?,
81 }
82
83 output.flush()?;
84 Ok(ExitCode::SUCCESS)
85 }
86}
87
88#[derive(Debug, Clone, PartialEq, Eq, Args)]

Callers 1

add_then_remove_cycleFunction · 0.45

Calls 15

get_mcp_server_configsFunction · 0.85
resolve_scope_profileFunction · 0.85
ensure_config_fileFunction · 0.85
process_argsMethod · 0.80
insertMethod · 0.80
to_str_prettyMethod · 0.80
mcp_configMethod · 0.80
globalMethod · 0.80
removeMethod · 0.80
expand_pathFunction · 0.70
flushMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected