From 4e1bfdbad6f5283835b4897a80f8fc67579dc76b Mon Sep 17 00:00:00 2001 From: Conrad Kleinespel Date: Sun, 23 Jun 2019 11:14:20 +0200 Subject: [PATCH] displays username when getting a password --- Cargo.lock | 2 +- Cargo.toml | 2 +- src/clip.rs | 6 ++++-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 6666ea04..67274f97 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -544,7 +544,7 @@ dependencies = [ [[package]] name = "rooster" -version = "2.8.1" +version = "2.8.2" dependencies = [ "byteorder 1.3.1 (registry+https://github.com/rust-lang/crates.io-index)", "clipboard 0.5.0 (registry+https://github.com/rust-lang/crates.io-index)", diff --git a/Cargo.toml b/Cargo.toml index d31bcd40..47568032 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "rooster" -version = "2.8.1" +version = "2.8.2" authors = ["Conrad Kleinespel "] license = "Apache-2.0" repository = "https://github.com/conradkdotcom/rooster" diff --git a/src/clip.rs b/src/clip.rs index 6fbbf6e5..4f913114 100644 --- a/src/clip.rs +++ b/src/clip.rs @@ -93,8 +93,9 @@ pub fn paste_keys() -> String { pub fn confirm_password_retrieved(show: bool, password: &password::v2::Password) { if show { println_ok!( - "Alright! Here is your password for {}: {}", + "Alright! Here is your password for {} ({}): {}", password.name, + password.username, password.password.deref() ); } else { @@ -106,8 +107,9 @@ pub fn confirm_password_retrieved(show: bool, password: &password::v2::Password) ); } else { println_ok!( - "Alright! You can paste your {} password anywhere with {}.", + "Alright! You can paste your {} ({}) password anywhere with {}.", password.name, + password.username, paste_keys() ); }