Skip to content

Commit

Permalink
displays username when getting a password
Browse files Browse the repository at this point in the history
  • Loading branch information
conradkleinespel committed Jun 23, 2019
1 parent 0f49f29 commit 4e1bfdb
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "rooster"
version = "2.8.1"
version = "2.8.2"
authors = ["Conrad Kleinespel <[email protected]>"]
license = "Apache-2.0"
repository = "https://github.com/conradkdotcom/rooster"
Expand Down
6 changes: 4 additions & 2 deletions src/clip.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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()
);
}
Expand Down

0 comments on commit 4e1bfdb

Please sign in to comment.