add password generator
This commit is contained in:
parent
a73d5ec9dd
commit
e067e2cb24
@ -35,7 +35,9 @@ OptionParser.parse do |parser|
|
||||
exit
|
||||
end
|
||||
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
|
||||
end
|
||||
parser.on "-t", "--unixtime", "Return local timestamp" do
|
||||
|
Loading…
Reference in New Issue
Block a user