Added clear terminal by close program 💻
This commit is contained in:
parent
71c6fbce7c
commit
237b811a80
@ -7,6 +7,7 @@
|
|||||||
- ♻️ - Edited
|
- ♻️ - Edited
|
||||||
|
|
||||||
## 0.2.2 - [08/04/2022]
|
## 0.2.2 - [08/04/2022]
|
||||||
|
- ➕ - Added clear terminal by close program
|
||||||
- ➕ - Add to prompt help helper
|
- ➕ - Add to prompt help helper
|
||||||
- ➕ - Added emoji to output
|
- ➕ - Added emoji to output
|
||||||
- ♻️ - Fixed URL color & style output
|
- ♻️ - Fixed URL color & style output
|
||||||
|
@ -30,6 +30,7 @@ begin
|
|||||||
parser.banner = "The very simple password manager for humans\n"
|
parser.banner = "The very simple password manager for humans\n"
|
||||||
|
|
||||||
parser.on "-v", "--version", "Show version" do
|
parser.on "-v", "--version", "Show version" do
|
||||||
|
puts "The very simple password manager for humans."
|
||||||
puts "Version #{VERSION}"
|
puts "Version #{VERSION}"
|
||||||
exit(0)
|
exit(0)
|
||||||
end
|
end
|
||||||
@ -44,7 +45,7 @@ begin
|
|||||||
exit(0)
|
exit(0)
|
||||||
end
|
end
|
||||||
parser.on "-t", "--unixtime", "Return local timestamp" do
|
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)
|
exit(0)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@ -94,6 +95,7 @@ while loop
|
|||||||
|
|
||||||
# if ':q' to close program
|
# if ':q' to close program
|
||||||
if password_string.to_s == ":q"
|
if password_string.to_s == ":q"
|
||||||
|
system "clear"
|
||||||
puts "Bye! 👋🏻"
|
puts "Bye! 👋🏻"
|
||||||
exit(0)
|
exit(0)
|
||||||
# if puts empty, retry prompt
|
# if puts empty, retry prompt
|
||||||
|
Loading…
Reference in New Issue
Block a user