From e688186ad69363c7b8e851655fe0b481963e740f Mon Sep 17 00:00:00 2001 From: Klimenty Titov Date: Tue, 17 Dec 2024 17:12:59 +0300 Subject: [PATCH] Fix `only_when_fresh` adding --- src/entities/custom_command.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/entities/custom_command.rs b/src/entities/custom_command.rs index 8cb797c..c9ff40a 100644 --- a/src/entities/custom_command.rs +++ b/src/entities/custom_command.rs @@ -45,11 +45,7 @@ impl CustomCommand { let ignore_fails = inquire::Confirm::new("Ignore command failures?").with_default(false).prompt()?; let show_bash_c = inquire::Confirm::new("Show an entire command at build stage?").with_default(true).prompt()?; let show_success_output = inquire::Confirm::new("Show an output of command if it executed successfully?").with_default(false).prompt()?; - let only_when_fresh = if inquire::Confirm::new("Start a command only in fresh builds?").with_default(false).prompt()? { - Some(true) - } else { - None - }; + let only_when_fresh = Some(inquire::Confirm::new("Start a command only in fresh builds?").with_default(false).prompt()?); Ok(CustomCommand { bash_c,