Skip to content

Commit

Permalink
Minor patch for list only
Browse files Browse the repository at this point in the history
  • Loading branch information
Anindya-Prithvi committed Aug 7, 2022
1 parent 3a64890 commit 4796431
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "spm"
version = "0.1.5"
version = "0.1.6"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand Down
7 changes: 2 additions & 5 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use encdfun::inits::read_directory;
use encdfun::verifypass::key_creator;
use encdfun::{decfuns::read_password, encfuns::write_password};
use openssl::symm::Cipher;
use std::{env, fs, io, path};
use std::{env, fs, path};

pub mod encdfun;

Expand Down Expand Up @@ -36,10 +36,7 @@ fn main() {
"--list" | "-l" => {
match read_directory(&basepath) {
Ok(_) => {
println!("Enter identifying name (domain) of password to read: ");
let mut input = String::new();
io::stdin().read_line(&mut input).unwrap();
read_password(input.trim(), &keyhash, &cipher, iv, &basepath);
return;
}
Err(e) => {
println!("{}", e);
Expand Down

0 comments on commit 4796431

Please sign in to comment.