lib/search_kit/cli/search.rb in search-kit-0.0.7 vs lib/search_kit/cli/search.rb in search-kit-0.0.8
- old
+ new
@@ -19,10 +19,10 @@
end
document :create
option :display, aliases: ['-d'], type: :array, required: false
def create(slug, phrase)
- search = client.search(slug, phrase: phrase)
+ search = client.create(slug, phrase: phrase)
head_path = 'cli.search.create.success.headline'
info_path = 'cli.search.create.success.info'
headline = I18n.t(head_path, slug: slug, phrase: phrase)
info = I18n.t(info_path, count: search.results, time: search.time)
lines = [ headline, info ]