mirror of
https://github.com/donl/homebrew-cask-versions.git
synced 2026-07-17 14:26:45 -06:00
16 lines
331 B
Ruby
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
|