1
0
Fork 0
mirror of https://github.com/nishiki/manage-password.git synced 2024-11-27 07:33:05 +00:00

remove search with protocol

This commit is contained in:
nishiki 2016-05-14 12:10:24 +02:00
parent 460450ce08
commit 81da0407d0
2 changed files with 0 additions and 4 deletions

View file

@ -147,7 +147,6 @@ cli.decrypt
if not options[:show].nil? if not options[:show].nil?
opts = {search: options[:show], opts = {search: options[:show],
group: options[:group], group: options[:group],
protocol: options[:protocol],
} }
cli.display(opts) cli.display(opts)

View file

@ -220,13 +220,10 @@ class MPW
search = options[:search].to_s.downcase search = options[:search].to_s.downcase
group = options[:group].to_s.downcase group = options[:group].to_s.downcase
protocol = options[:protocol].to_s.downcase
@data.each do |item| @data.each do |item|
next if item.empty? next if item.empty?
next if not group.empty? and not group.eql?(item.group.downcase) next if not group.empty? and not group.eql?(item.group.downcase)
next if not protocol.empty? and not protocol.eql?(item.protocol.downcase)
name = item.name.to_s.downcase name = item.name.to_s.downcase
host = item.host.to_s.downcase host = item.host.to_s.downcase