mirror of
https://github.com/002Hub/IPass.git
synced 2025-04-19 13:51:21 +02:00
add total entry count to list
This commit is contained in:
parent
52c5fd45c3
commit
763342941c
@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "ipass"
|
||||
version = "0.3.0"
|
||||
version = "0.3.1"
|
||||
edition = "2021"
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
@ -1,6 +1,6 @@
|
||||
# IPass
|
||||
|
||||

|
||||

|
||||
|
||||
## Secure your passwords, secure your life, with IPass.
|
||||
|
||||
|
@ -104,10 +104,14 @@ fn help_message(args: &Vec<String>) {
|
||||
}
|
||||
|
||||
fn list() {
|
||||
let paths = std::fs::read_dir(utils::get_ipass_folder()).unwrap();
|
||||
let mut paths = std::fs::read_dir(utils::get_ipass_folder()).unwrap();
|
||||
|
||||
let mut has_entry:bool = false;
|
||||
|
||||
println!("Total entries: {}\n", paths.count());
|
||||
|
||||
paths = std::fs::read_dir(utils::get_ipass_folder()).unwrap();
|
||||
|
||||
for path in paths {
|
||||
has_entry = true;
|
||||
println!("Entry: \"{}\"", path.unwrap().file_name().into_string().unwrap().replace(".ipass", ""));
|
||||
|
Loading…
x
Reference in New Issue
Block a user