You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
372 B

$LOAD_PATH.unshift(File.expand_path("../vendor/bundle", __FILE__))
require "bundler/setup"
require "alphred"
if __FILE__ == $0
query = ARGV.shift
Alphred::Error.try do
raise "OMG" if query == "error"
items = [
Alphred::Item.new(
title: "ohai",
subtitle: $LOAD_PATH,
),
]
puts Alphred::Items.new(*items).to_xml
end
end