diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2021-04-22 10:34:53 +0200 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2021-04-22 10:34:53 +0200 |
commit | 6dfdd5994ed386e61a3a0ef6a52c79beb65f089d (patch) | |
tree | c2098b499e7af878873bf2dfb2d3f5e614c5ff95 | |
parent | dd23d7460c2cf3d223f9f9f1faebc52aa57f690d (diff) | |
parent | e16f3cf50879bf97a27ac5afc2b85429b28d62ed (diff) |
Merge branch 'fix-prune-no'
-rw-r--r-- | src/commands/endpoint.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/commands/endpoint.rs b/src/commands/endpoint.rs index 5338978..051d4fe 100644 --- a/src/commands/endpoint.rs +++ b/src/commands/endpoint.rs @@ -247,7 +247,9 @@ async fn containers_prune(endpoint_names: Vec<EndpointName>, .await?; let prompt = format!("Really delete {} Containers?", stats.iter().flatten().count()); - dialoguer::Confirm::new().with_prompt(prompt).interact()?; + if !dialoguer::Confirm::new().with_prompt(prompt).interact()? { + return Ok(()) + } stats.into_iter() .map(Vec::into_iter) |