From 9818b43f80a14ebe36637153dc43ec8a1760f172 Mon Sep 17 00:00:00 2001 From: Alexander Popov Date: Fri, 8 Apr 2022 16:05:11 +0300 Subject: [PATCH] =?UTF-8?q?add=20emoji=20to=20output=20=F0=9F=91=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HISTORY.md | 1 + src/pmng.cr | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/HISTORY.md b/HISTORY.md index 3ba6042..830d441 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -7,6 +7,7 @@ - ♻️ - Edited ## 0.2.2 - [08/04/2022] +- ➕ - Added emoji to output - ♻️ - Fixed URL color & style output ## 0.2.1 - [14/03/2022] diff --git a/src/pmng.cr b/src/pmng.cr index 20f5aaf..c411d44 100644 --- a/src/pmng.cr +++ b/src/pmng.cr @@ -120,21 +120,27 @@ while loop else passwords_array.each do |item| if item.url.includes?(password_string.to_s) + print "🌐 " puts item.url.colorize(:magenta).mode(:bold).mode(:underline) if !item.email.blank? + print "📧 " puts item.email.colorize(:red) end if !item.login.blank? + print "🏷️ " puts item.login.colorize(:yellow) end if !item.password.blank? + print "🔐 " puts item.password.colorize(:red).back(:red) end if !item.desc.blank? + print "📄 " puts item.desc.colorize(:cyan) end if !item.profile_url.blank? + print "👦 " puts item.profile_url.colorize(:green) end