From b905b68eaded7703e026d3e803ea25df2ebd6ba8 Mon Sep 17 00:00:00 2001 From: John Detter <4099508+jdetter@users.noreply.github.com> Date: Sun, 21 Jan 2024 18:16:02 -0600 Subject: [PATCH] Fix --delete-files command without using --force (#739) Co-authored-by: John Detter --- crates/cli/src/subcommands/generate/mod.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/cli/src/subcommands/generate/mod.rs b/crates/cli/src/subcommands/generate/mod.rs index b3541d5f8c..50a1195807 100644 --- a/crates/cli/src/subcommands/generate/mod.rs +++ b/crates/cli/src/subcommands/generate/mod.rs @@ -164,6 +164,7 @@ Failed to compile module {:?}. See cargo errors above for more details.", if !force { print!("Are you sure you want to delete these files? [y/N] "); + input = "".to_string(); std::io::stdout().flush()?; std::io::stdin().read_line(&mut input)?; } else {