MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / run

Method run

atomic-cli/src/commands/project/delete.rs:67–85  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

65
66impl 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
88impl ProjectDelete {

Callers

nothing calls this directly

Calls 5

parse_project_pathFunction · 0.85
build_clientFunction · 0.85
execute_with_clientMethod · 0.80
with_promptMethod · 0.80
defaultMethod · 0.45

Tested by

no test coverage detected