From 1e75874480a61e3209bd3bb4620c972292b236a7 Mon Sep 17 00:00:00 2001 From: Bruno Galvao Date: Tue, 2 Apr 2024 20:08:14 +0900 Subject: [PATCH 1/2] set default value to Yes for confirm --- src/commands/up/parachain.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/up/parachain.rs b/src/commands/up/parachain.rs index aa1c124d..f4d5ac15 100644 --- a/src/commands/up/parachain.rs +++ b/src/commands/up/parachain.rs @@ -47,7 +47,7 @@ impl ZombienetCommand { "The following missing binaries are required: {}", missing.iter().map(|b| b.name.as_str()).collect::>().join(", ") ))?; - if !confirm("Would you like to source them automatically now?").interact()? { + if !confirm("Would you like to source them automatically now?").initial_value(true).interact()? { outro_cancel("Cannot deploy parachain to local network until all required binaries are available.")?; return Ok(()); } From 06951d13dff2cd0ba10b47305be5ba99d527354a Mon Sep 17 00:00:00 2001 From: Bruno Galvao Date: Tue, 2 Apr 2024 20:11:15 +0900 Subject: [PATCH 2/2] cargo fmt --- src/commands/up/parachain.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/commands/up/parachain.rs b/src/commands/up/parachain.rs index f4d5ac15..ef5d3a6b 100644 --- a/src/commands/up/parachain.rs +++ b/src/commands/up/parachain.rs @@ -47,7 +47,10 @@ impl ZombienetCommand { "The following missing binaries are required: {}", missing.iter().map(|b| b.name.as_str()).collect::>().join(", ") ))?; - if !confirm("Would you like to source them automatically now?").initial_value(true).interact()? { + if !confirm("Would you like to source them automatically now?") + .initial_value(true) + .interact()? + { outro_cancel("Cannot deploy parachain to local network until all required binaries are available.")?; return Ok(()); }