1
0
Fork 0
mirror of https://github.com/nishiki/manage-password.git synced 2024-11-27 07:33:05 +00:00
This commit is contained in:
nishiki 2013-09-11 20:47:51 +02:00
parent 31fc8af286
commit edb7b6b7ae
2 changed files with 3 additions and 3 deletions

View file

@ -49,8 +49,8 @@ class Cli
# Display the query's result # Display the query's result
# @args: search -> the string to search # @args: search -> the string to search
# protocol -> search from a particular protocol # protocol -> search from a particular protocol
def display(search, protocol=nil, format=nil) def display(search, protocol=nil, group=nil, format=nil)
result = @m.search(search, protocol) result = @m.search(search, group, protocol)
if not result.empty? if not result.empty?
result.each do |r| result.each do |r|

View file

@ -12,7 +12,7 @@ class CliSSH < Cli
# Connect to SSH # Connect to SSH
# args: search -> string to search # args: search -> string to search
def ssh(search) def ssh(search)
result = @m.search(search, 'ssh') result = @m.search(search, nil, 'ssh')
if result.length > 0 if result.length > 0
result.each do |r| result.each do |r|