Browse Source

yes / hint

db-refactoring
Coin de Gamma 3 months ago
parent
commit
25b0125893
  1. 6
      src/main.rs

6
src/main.rs

@ -103,7 +103,9 @@ fn get_prompt(question: &str) -> io::Result<PROMPT> {
let input = input.trim().to_lowercase(); let input = input.trim().to_lowercase();
match input.as_str() { match input.as_str() {
"y" => Ok(PROMPT::YES), "y" => Ok(PROMPT::YES),
"yes" => Ok(PROMPT::YES),
"n" => Ok(PROMPT::NO), "n" => Ok(PROMPT::NO),
"no" => Ok(PROMPT::NO),
_ => Ok(PROMPT::YES), _ => Ok(PROMPT::YES),
} }
@ -127,10 +129,10 @@ fn main() -> io::Result<()> {
PROMPT::YES => init()?, PROMPT::YES => init()?,
PROMPT::NO => { PROMPT::NO => {
println!("mps can work only when storage inited."); 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 <your_storage_git_url> {}", STORAGE_FOLDER); println!(" git clone <your_storage_git_url> {}", STORAGE_FOLDER);
println!("to init manually your storage and config") println!("to init manually your storage and config")
}, },
} }
} else { } else {
println!("login, not implemented yet") println!("login, not implemented yet")

Loading…
Cancel
Save