aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd/cat.rb
blob: a87eba61e43b1aa719628734aa1cc98066301f35 (plain)
1
2
3
4
5
6
7
8
9
10
module Homebrew extend self
  def cat
    # do not "fix" this to support multiple arguments, the output would be
    # unparsable, if the user wants to cat multiple formula they can call
    # brew cat multiple times.

    cd HOMEBREW_REPOSITORY
    exec "cat", ARGV.formulae.first.path, *ARGV.options_only
  end
end