aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd/cat.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew/cmd/cat.rb')
-rw-r--r--Library/Homebrew/cmd/cat.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/cat.rb b/Library/Homebrew/cmd/cat.rb
new file mode 100644
index 000000000..a87eba61e
--- /dev/null
+++ b/Library/Homebrew/cmd/cat.rb
@@ -0,0 +1,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