Find `message find-all` in CLI

This commit is contained in:
Netscape Navigator 2020-04-02 07:24:43 -05:00
parent 82ed554aba
commit 9feb3d9ffc
2 changed files with 4 additions and 1 deletions

View File

@ -41,7 +41,7 @@ module Pigeon
read { store[MESG_NS].fetch(multihash) }
end
def find_all(author = Pigeon::LocalIdentity.current)
def find_all(author = Pigeon::LocalIdentity.current.public_key)
# TODO: Ability to pass an author ID to `find-all`
store = Pigeon::Storage.current
all = []

View File

@ -57,4 +57,7 @@ RSpec.describe Pigeon::Storage do
actual_messages = Pigeon::Storage.current.find_all(author)
search_results = Pigeon::Storage.current.find_all(author)
end
it "finds all messages" do
end
end