|
|
@ -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,7 +129,7 @@ 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") |
|
|
|
}, |
|
|
|
}, |
|
|
|