Skip to content

Commit

Permalink
Use ASCII art text for "pwdm" in CLI header (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
OTheDev authored Apr 28, 2024
1 parent 90d6eaf commit c09390a
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -446,8 +446,22 @@ fn print_if_weak_password(feedback: Option<zxcvbn::feedback::Feedback>) {
}

fn print_header(path: &str) {
println!("{}", "pwdm - Password Manager".bright_magenta().bold());
println!("{}: {}\n", "Database".green(), path);
println!(
"\
██████╗ ██╗ ██╗██████╗ ███╗ ███╗
██╔══██╗██║ ██║██╔══██╗████╗ ████║
██████╔╝██║ █╗ ██║██║ ██║██╔████╔██║
██╔═══╝ ██║███╗██║██║ ██║██║╚██╔╝██║
██║ ╚███╔███╔╝██████╔╝██║ ╚═╝ ██║
╚═╝ ╚══╝╚══╝ ╚═════╝ ╚═╝ ╚═╝
{}
{}: {}
",
"pwdm - Password Manager".bright_magenta().bold(),
"Database".green(),
path
);
}

fn print_no_password_found_for_id(id: &str) {
Expand Down

0 comments on commit c09390a

Please sign in to comment.