bin/sonic_pass in sonic_pass-0.2.1 vs bin/sonic_pass in sonic_pass-1.0.0
- old
+ new
@@ -9,10 +9,10 @@
passwords = SonicPass.generate(length, count)
# Copy the generated password to the clipboard
if count == 1
- Clipboard.copy(passwords[0])
- puts "Password: #{passwords[0]} copied to clipboard"
+ Clipboard.copy(passwords)
+ puts "Password: #{passwords} copied to clipboard"
else
puts passwords.join("\n")
end