Added clear terminal by close program 💻
This commit is contained in:
parent
71c6fbce7c
commit
237b811a80
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user