21 lines
390 B
Ruby
Raw Normal View History

2016-09-24 13:52:43 +02:00
module Hbc
class CLI
2017-05-20 19:08:03 +02:00
class Cat < AbstractCommand
2017-05-21 00:15:56 +02:00
def initialize(*)
super
raise CaskUnspecifiedError if args.empty?
end
2017-05-19 21:13:08 +02:00
def run
casks.each do |cask|
puts File.open(cask.sourcefile_path, &:read)
2017-05-21 00:15:56 +02:00
end
2016-09-24 13:52:43 +02:00
end
2016-08-18 22:11:42 +03:00
2016-09-24 13:52:43 +02:00
def self.help
"dump raw source of the given Cask to the standard output"
end
end
2016-08-18 22:11:42 +03:00
end
end