mirror of
https://github.com/nishiki/manage-password.git
synced 2024-11-23 13:57:52 +00:00
fix bug
This commit is contained in:
parent
31fc8af286
commit
edb7b6b7ae
2 changed files with 3 additions and 3 deletions
|
@ -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|
|
||||||
|
|
|
@ -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|
|
||||||
|
|
Loading…
Reference in a new issue