Added clear terminal by close program 💻

This commit is contained in:
Alexander Popov 2022-04-08 16:23:14 +03:00
parent 71c6fbce7c
commit 237b811a80
Signed by: iiiypuk
GPG Key ID: 3F76816AEE08F908
2 changed files with 4 additions and 1 deletions

View File

@ -7,6 +7,7 @@
- ♻️ - Edited
## 0.2.2 - [08/04/2022]
- - Added clear terminal by close program
- - Add to prompt help helper
- - Added emoji to output
- ♻️ - Fixed URL color & style output

View File

@ -30,6 +30,7 @@ begin
parser.banner = "The very simple password manager for humans\n"
parser.on "-v", "--version", "Show version" do
puts "The very simple password manager for humans."
puts "Version #{VERSION}"
exit(0)
end
@ -44,7 +45,7 @@ begin
exit(0)
end
parser.on "-t", "--unixtime", "Return local timestamp" do
puts Time.local.to_unix.colorize(:yellow)
puts Time.local.to_unix.colorize(:yellow).mode(:bold)
exit(0)
end
end
@ -94,6 +95,7 @@ while loop
# if ':q' to close program
if password_string.to_s == ":q"
system "clear"
puts "Bye! 👋🏻"
exit(0)
# if puts empty, retry prompt