
This can become handy when we separate core code and formulae. For example, we could use `cd $(brew --repo homebrew/core)` to go to core tap path. Closes Homebrew/homebrew#50346. Signed-off-by: Xu Cheng <xucheng@me.com>
12 lines
189 B
Ruby
12 lines
189 B
Ruby
require "tap"
|
|
|
|
module Homebrew
|
|
def __repository
|
|
if ARGV.named.empty?
|
|
puts HOMEBREW_REPOSITORY
|
|
else
|
|
puts ARGV.named.map { |tap| Tap.fetch(tap).path }
|
|
end
|
|
end
|
|
end
|