(&self, os: &Os)
| 16 | |
| 17 | impl 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 | } |
nothing calls this directly
no test coverage detected