aboutsummaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorAlexander Solovyov2009-11-19 18:10:35 +0200
committerMax Howell2009-12-22 05:49:31 +0000
commit650d1cb1651b7c84189a8acb7da5d9d9e9c002fc (patch)
treebfbf25325a4d53ade300c44b18451f34de92a00a /bin
parent74d9d462d659d5a610bd9568d47234750b9973b6 (diff)
downloadbrew-650d1cb1651b7c84189a8acb7da5d9d9e9c002fc.tar.bz2
brew: add 'cat' command
Diffstat (limited to 'bin')
-rwxr-xr-xbin/brew4
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/brew b/bin/brew
index fbe4f5497..fffd99d9b 100755
--- a/bin/brew
+++ b/bin/brew
@@ -297,6 +297,10 @@ begin
when 'branch', 'checkout', 'pull', 'push', 'reset'
onoe "Unknown command: #{arg} (did you mean 'git #{arg}'?)"
+ when 'cat'
+ Dir.chdir HOMEBREW_REPOSITORY
+ exec "cat", ARGV.formulae.first.path, *ARGV.options
+
else
onoe "Unknown command: #{arg}"
end