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

Method execute

crates/chat-cli/src/cli/issue.rs:18–39  ·  view source on GitHub ↗
(&self, os: &Os)

Source from the content-addressed store, hash-verified

16
17impl IssueArgs {
18 pub async fn execute(&self, os: &Os) -> Result<ExitCode> {
19 let joined_description = self.description.join(" ").trim().to_owned();
20
21 let issue_title = match joined_description.len() {
22 0 => dialoguer::Input::with_theme(&crate::util::dialoguer_theme())
23 .with_prompt("Issue Title")
24 .interact_text()?,
25 _ => joined_description,
26 };
27
28 let _ = crate::cli::chat::util::issue::IssueCreator {
29 title: Some(issue_title),
30 expected_behavior: None,
31 actual_behavior: None,
32 steps_to_reproduce: None,
33 additional_environment: None,
34 }
35 .create_url(os)
36 .await;
37
38 Ok(ExitCode::SUCCESS)
39 }
40}

Callers

nothing calls this directly

Calls 4

dialoguer_themeFunction · 0.85
joinMethod · 0.80
create_urlMethod · 0.80
lenMethod · 0.45

Tested by

no test coverage detected