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

Method execute

crates/agent/src/cli/mod.rs:40–46  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

38
39impl CliArgs {
40 pub async fn execute(self) -> Result<ExitCode> {
41 let _guard = Self::setup_logging().context("failed to initialize logging")?;
42
43 let subcommand = self.subcommand.unwrap_or_default();
44
45 subcommand.execute().await
46 }
47
48 fn setup_logging() -> Result<WorkerGuard> {
49 let env_filter = EnvFilter::try_from_default_env().unwrap_or_default();

Callers

nothing calls this directly

Calls 1

contextMethod · 0.80

Tested by

no test coverage detected