(&self)
| 65 | |
| 66 | impl Command for ProjectDelete { |
| 67 | fn run(&self) -> CliResult<()> { |
| 68 | let rt = tokio::runtime::Runtime::new().map_err(|e| { |
| 69 | CliError::Internal(anyhow::anyhow!("Failed to create async runtime: {}", e)) |
| 70 | })?; |
| 71 | |
| 72 | rt.block_on(async { |
| 73 | let (ws_slug, proj_slug) = parse_project_path(&self.slug)?; |
| 74 | let client = build_client(self.org.as_deref(), None).await?; |
| 75 | |
| 76 | self.execute_with_client(&client, ws_slug, proj_slug, |prompt| { |
| 77 | dialoguer::Confirm::new() |
| 78 | .with_prompt(prompt) |
| 79 | .default(false) |
| 80 | .interact() |
| 81 | .map_err(|e| CliError::Internal(anyhow::anyhow!("Prompt failed: {}", e))) |
| 82 | }) |
| 83 | .await |
| 84 | }) |
| 85 | } |
| 86 | } |
| 87 | |
| 88 | impl ProjectDelete { |
nothing calls this directly
no test coverage detected