From 25b0125893d9431278fb19174e424bf80258a70f Mon Sep 17 00:00:00 2001 From: Coin de Gamma Date: Mon, 16 Sep 2024 13:16:00 +0000 Subject: [PATCH] yes / hint --- src/main.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 4bed79a..9b938fd 100644 --- a/src/main.rs +++ b/src/main.rs @@ -103,7 +103,9 @@ fn get_prompt(question: &str) -> io::Result { let input = input.trim().to_lowercase(); match input.as_str() { "y" => Ok(PROMPT::YES), + "yes" => Ok(PROMPT::YES), "n" => Ok(PROMPT::NO), + "no" => Ok(PROMPT::NO), _ => Ok(PROMPT::YES), } @@ -127,10 +129,10 @@ fn main() -> io::Result<()> { PROMPT::YES => init()?, PROMPT::NO => { println!("mps can work only when storage inited."); - println!("Hint: you cant do"); + println!("Hint: you can restore your storage if you have it already:"); println!(" git clone {}", STORAGE_FOLDER); println!("to init manually your storage and config") - }, + }, } } else { println!("login, not implemented yet")