update ipass library

This commit is contained in:
Code002Lover Arch Laptop 2023-04-17 11:48:49 +02:00
parent 9a9a3c6654
commit 38a39f3d54
3 changed files with 1040 additions and 4 deletions

1038
Cargo.lock generated

File diff suppressed because it is too large Load Diff

@ -1 +1 @@
Subproject commit d2c9adefdc4a7096ff7047f830807245291407fa Subproject commit 3326ee886b0121237a84217ab9508728c722f8d4

View File

@ -203,7 +203,7 @@ fn get(args: &Vec<String>) {
let filepath = &(ip_lib::get_ipass_folder()+name+".ipass"); let filepath = &(ip_lib::get_ipass_folder()+name+".ipass");
if std::path::Path::new(filepath).exists() { if std::path::Path::new(filepath).exists() {
println!("Getting entry"); 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(";"); let mut data = entry.split(";");
println!("Username: '{}' Password: '{}'",data.next().unwrap(),data.next().unwrap()); println!("Username: '{}' Password: '{}'",data.next().unwrap(),data.next().unwrap());
} else { } 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] //! arguments: program isync [on/off]
if args.len() > 2 { if args.len() > 2 {
println!("Invalid usage of \"isync\""); println!("Invalid usage of \"isync\"");