add password generator
This commit is contained in:
parent
a73d5ec9dd
commit
e067e2cb24
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user