Ask user whether they want to override already existig files when editing #12

Showing only changes of commit 25286daea9 - Show all commits

View File

@ -266,7 +266,7 @@ fn main() -> Result<(), String> {
}
if !no_confirm {
match input!("Continue? [Y|n]").to_lowercase().as_str() {
match input!("Continue? [Y|n] ").to_lowercase().as_str() {
"n" | "no" => {
log!(logger, "Aborting...");
return Ok(());
@ -359,7 +359,7 @@ fn main() -> Result<(), String> {
);
if !args.quiet {
match input!("{duplication_notification}. Do you want to replace it? [N|y]")
match input!("{duplication_notification}. Do you want to replace it? [N|y] ")
.to_lowercase()
.as_str()
{