lib/gtk2passwordapp/cli.rb in gtk2passwordapp-6.2.210911 vs lib/gtk2passwordapp/cli.rb in gtk2passwordapp-6.3.230117

- old
+ new

@@ -31,8 +31,18 @@ lst = YamlZlibBlowfish.new(pwd).load(dump) rescue OpenSSL::Cipher::CipherError $stderr.puts "Bad password+salt" exit 65 end - pp lst.select{|k,v|pattern.match? k} + lst.select{|k,v|pattern.match? k}.each do |k,v| + puts <<~RECORD + Account: #{k} + Username: #{v[2]} + Password: #{v[0]} + Previous: #{v[1]} + Note: #{v[4]} + URL: #{v[3]} + Updated: #{Time.at(v[5]).strftime('%Y-%m-%d %H:%M:%S')} + RECORD + end end end