mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
21 lines
390 B
Ruby
21 lines
390 B
Ruby
module Hbc
|
|
class CLI
|
|
class Cat < AbstractCommand
|
|
def initialize(*)
|
|
super
|
|
raise CaskUnspecifiedError if args.empty?
|
|
end
|
|
|
|
def run
|
|
casks.each do |cask|
|
|
puts File.open(cask.sourcefile_path, &:read)
|
|
end
|
|
end
|
|
|
|
def self.help
|
|
"dump raw source of the given Cask to the standard output"
|
|
end
|
|
end
|
|
end
|
|
end
|