Compare commits
3 Commits
d49dcda651
...
71c6fbce7c
Author | SHA1 | Date | |
---|---|---|---|
71c6fbce7c | |||
9818b43f80 | |||
1dead2cc47 |
@ -6,6 +6,11 @@
|
|||||||
- ℹ️ - Information
|
- ℹ️ - Information
|
||||||
- ♻️ - Edited
|
- ♻️ - Edited
|
||||||
|
|
||||||
|
## 0.2.2 - [08/04/2022]
|
||||||
|
- ➕ - Add to prompt help helper
|
||||||
|
- ➕ - Added emoji to output
|
||||||
|
- ♻️ - Fixed URL color & style output
|
||||||
|
|
||||||
## 0.2.1 - [14/03/2022]
|
## 0.2.1 - [14/03/2022]
|
||||||
- ➕ - prompt '>' set color green
|
- ➕ - prompt '>' set color green
|
||||||
- ♻️ - change default pwd path to '$HOME/.pwd.yml'
|
- ♻️ - change default pwd path to '$HOME/.pwd.yml'
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
name: pmng
|
name: pmng
|
||||||
version: 0.2.1
|
version: 0.2.2
|
||||||
|
|
||||||
authors:
|
authors:
|
||||||
- Alexander Popov <iiiypuk@iiiypuk.me>
|
- Alexander Popov <iiiypuk@iiiypuk.me>
|
||||||
@ -13,6 +13,6 @@ development_dependencies:
|
|||||||
github: crystal-ameba/ameba
|
github: crystal-ameba/ameba
|
||||||
version: ~> 0.14.0
|
version: ~> 0.14.0
|
||||||
|
|
||||||
crystal: 1.2.2
|
crystal: 1.3.2
|
||||||
|
|
||||||
license: MIT
|
license: MIT
|
||||||
|
21
src/pmng.cr
21
src/pmng.cr
@ -22,7 +22,7 @@ class Password
|
|||||||
property update : Int32
|
property update : Int32
|
||||||
end
|
end
|
||||||
|
|
||||||
VERSION = "0.2.1"
|
VERSION = "0.2.2"
|
||||||
|
|
||||||
# program options
|
# program options
|
||||||
begin
|
begin
|
||||||
@ -83,8 +83,13 @@ end
|
|||||||
loop = true
|
loop = true
|
||||||
while loop
|
while loop
|
||||||
# shell prompt
|
# shell prompt
|
||||||
print "Enter URL (or :q for exit)\n"
|
print "Enter URL (".colorize(:white).mode(:bold)
|
||||||
print "> ".colorize(:green)
|
print ":h".colorize(:red).mode(:bold)
|
||||||
|
print " for help or ".colorize(:white).mode(:bold)
|
||||||
|
print ":q".colorize(:red).mode(:bold)
|
||||||
|
print " for exit)\n".colorize(:white).mode(:bold)
|
||||||
|
print "> ".colorize(:green).mode(:bold)
|
||||||
|
|
||||||
password_string = gets
|
password_string = gets
|
||||||
|
|
||||||
# if ':q' to close program
|
# if ':q' to close program
|
||||||
@ -120,25 +125,31 @@ while loop
|
|||||||
else
|
else
|
||||||
passwords_array.each do |item|
|
passwords_array.each do |item|
|
||||||
if item.url.includes?(password_string.to_s)
|
if item.url.includes?(password_string.to_s)
|
||||||
puts item.url.colorize(:magenta).mode(:blink)
|
print "🌐 "
|
||||||
|
puts item.url.colorize(:magenta).mode(:bold).mode(:underline)
|
||||||
|
|
||||||
if !item.email.blank?
|
if !item.email.blank?
|
||||||
|
print "📧 "
|
||||||
puts item.email.colorize(:red)
|
puts item.email.colorize(:red)
|
||||||
end
|
end
|
||||||
if !item.login.blank?
|
if !item.login.blank?
|
||||||
|
print "🏷️ "
|
||||||
puts item.login.colorize(:yellow)
|
puts item.login.colorize(:yellow)
|
||||||
end
|
end
|
||||||
if !item.password.blank?
|
if !item.password.blank?
|
||||||
|
print "🔐 "
|
||||||
puts item.password.colorize(:red).back(:red)
|
puts item.password.colorize(:red).back(:red)
|
||||||
end
|
end
|
||||||
if !item.desc.blank?
|
if !item.desc.blank?
|
||||||
|
print "📄 "
|
||||||
puts item.desc.colorize(:cyan)
|
puts item.desc.colorize(:cyan)
|
||||||
end
|
end
|
||||||
if !item.profile_url.blank?
|
if !item.profile_url.blank?
|
||||||
|
print "👦 "
|
||||||
puts item.profile_url.colorize(:green)
|
puts item.profile_url.colorize(:green)
|
||||||
end
|
end
|
||||||
|
|
||||||
puts "---".colorize(:dark_gray)
|
puts "-----".colorize(:dark_gray).mode(:bold)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user