add password generator

This commit is contained in:
Alexander Popov 2022-01-03 23:39:04 +03:00
parent a73d5ec9dd
commit e067e2cb24

View File

@ -35,7 +35,9 @@ OptionParser.parse do |parser|
exit exit
end end
parser.on "-g", "--generate-password", "Generate password" do parser.on "-g", "--generate-password", "Generate password" do
puts "---" puts Random::Secure.urlsafe_base64(16, padding: false).to_s.colorize(:black).back(:white)
puts Random::Secure.urlsafe_base64(16, padding: false).to_s.colorize(:white).back(:red)
puts Random::Secure.urlsafe_base64(16, padding: false).to_s.colorize(:white).back(:blue)
exit exit
end end
parser.on "-t", "--unixtime", "Return local timestamp" do parser.on "-t", "--unixtime", "Return local timestamp" do