|
|
@ -82,9 +82,10 @@ impl MPS { |
|
|
|
|
|
|
|
|
|
|
|
fn print_init_hint() { |
|
|
|
fn print_init_hint() { |
|
|
|
println!("1. Create empty repository for storing your passwords on gitlab or somewhere you prefer"); |
|
|
|
println!("1. Create empty repository for storing your passwords on gitlab or somewhere you prefer"); |
|
|
|
println!("2. Clone to your home folder ~/.mps/storage"); |
|
|
|
println!("2. Create dir `mps`: `mkdir ~/mps`"); |
|
|
|
println!("3. xport varable $MPS_HOME: `export MPS_HOME=\"/home/<your_username>/.mps\"`"); |
|
|
|
println!("3. Clone to your home folder `~/.mps/storage`: `git clone <your_storage_url> storage`"); |
|
|
|
println!("4. Run `mps init`"); |
|
|
|
println!("4. xport varable `$MPS_HOME`: `export MPS_HOME=\"/home/<your_username>/.mps\"`"); |
|
|
|
|
|
|
|
println!("5. Run `mps init`"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
fn prompt_new_password() -> io::Result<String> { |
|
|
|
fn prompt_new_password() -> io::Result<String> { |
|
|
|