update ipass library

This commit is contained in:
2023-04-17 11:48:49 +02:00
parent 9a9a3c6654
commit 38a39f3d54
3 changed files with 1040 additions and 4 deletions
Generated
+1037 -1
View File
File diff suppressed because it is too large Load Diff
+1 -1
Submodule library updated: d2c9adefdc...3326ee886b
+2 -2
View File
@@ -203,7 +203,7 @@ fn get(args: &Vec<String>) {
let filepath = &(ip_lib::get_ipass_folder()+name+".ipass");
if std::path::Path::new(filepath).exists() {
println!("Getting entry");
let entry: String = ip_lib::get_entry(name, ask_for_pw());
let entry: String = ip_lib::get_entry(name, ask_for_pw()).expect("could not read entry!");
let mut data = entry.split(";");
println!("Username: '{}' Password: '{}'",data.next().unwrap(),data.next().unwrap());
} else {
@@ -403,7 +403,7 @@ fn sync(args: &Vec<String>) {
}
}
fn isync(args: &Vec<String>) {
fn isync(args: &Vec<String>) {
//! arguments: program isync [on/off]
if args.len() > 2 {
println!("Invalid usage of \"isync\"");