homebrew-cask-versions/lib/cask/cli/home.rb
2013-02-22 16:32:02 -06:00

16 lines
331 B
Ruby

module Cask::CLI::Home
def self.run(*cask_names)
cask_names.each do |cask_name|
begin
cask = Cask.load(cask_name)
system "open", cask.homepage
rescue CaskUnavailableError => e
onoe e
end
end
end
def self.help
"opens the homepage of the cask of the given name"
end
end